MCPcopy
hub / github.com/amark/gun / keys

Function keys

test/expect.js:796–810  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

794 }
795
796 function keys (obj) {
797 if (Object.keys) {
798 return Object.keys(obj);
799 }
800
801 var keys = [];
802
803 for (var i in obj) {
804 if (Object.prototype.hasOwnProperty.call(obj, i)) {
805 keys.push(i);
806 }
807 }
808
809 return keys;
810 }
811
812 function map (arr, mapper, that) {
813 if (Array.prototype.map) {

Callers 7

gun.jsFile · 0.85
mocha.jsFile · 0.85
AssertionFunction · 0.85
expect.jsFile · 0.85
formatFunction · 0.85
objEquivFunction · 0.85
type.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected