source: frontend/node_modules/underscore/amd/allKeys.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 423 bytes
Line 
1define(['./isObject', './_setup', './_collectNonEnumProps'], function (isObject, _setup, _collectNonEnumProps) {
2
3 // Retrieve all the enumerable property names of an object.
4 function allKeys(obj) {
5 if (!isObject(obj)) return [];
6 var keys = [];
7 for (var key in obj) keys.push(key);
8 // Ahem, IE < 9.
9 if (_setup.hasEnumBug) _collectNonEnumProps(obj, keys);
10 return keys;
11 }
12
13 return allKeys;
14
15});
Note: See TracBrowser for help on using the repository browser.