MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / getObjKeys

Function getObjKeys

scripts/libs/utils/object.js:44–50  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

42
43/* Get the key value of the object. ES6+ applications can use Object.keys() instead */
44export function getObjKeys(obj) {
45 const keys = [];
46 forIn(obj, function (key) {
47 keys.push(key);
48 });
49 return keys;
50}
51
52/**
53 * Deeply merge two enumerable objects

Callers

nothing calls this directly

Calls 1

forInFunction · 0.85

Tested by

no test coverage detected