-
Notifications
You must be signed in to change notification settings - Fork 832
Open
Description
The following bit of JavaScript isn't likely even copyrightable. However, license robots choke on it because it's found on StackOverflow--and therefore under the CC-BY-SA 4.0 (per their current Terms and Conditions):
Lines 2261 to 2276 in 2bb97af
| /** | |
| * Check if an object is empty. | |
| * | |
| * Taken from: | |
| * http://stackoverflow.com/questions/679915/how-do-i-test-for-an-empty-javascript-object-from-json/679937#679937 | |
| * | |
| * @param object the object to check. | |
| */ | |
| util.isEmpty = function(obj) { | |
| for(var prop in obj) { | |
| if(obj.hasOwnProperty(prop)) { | |
| return false; | |
| } | |
| } | |
| return true; | |
| }; |
Not sure if you'd care to replace it with a rewritten variation, but that might help the robots... 😉
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels