MCPcopy Index your code
hub / github.com/caolan/nodeunit / _keys

Function _keys

lib/assert.js:12–22  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

10 */
11
12var _keys = function(obj){
13 if(Object.keys) return Object.keys(obj);
14 if (typeof obj != 'object' && typeof obj != 'function') {
15 throw new TypeError('-');
16 }
17 var keys = [];
18 for(var k in obj){
19 if(obj.hasOwnProperty(k)) keys.push(k);
20 }
21 return keys;
22};
23
24
25

Callers 1

objEquivFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…