MCPcopy
hub / github.com/ccampbell/rainbow / keys

Function keys

src/util.js:119–130  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

117 * @return {Array}
118 */
119export function keys(object) {
120 const locations = [];
121
122 for (const location in object) {
123 if (object.hasOwnProperty(location)) {
124 locations.push(location);
125 }
126 }
127
128 // numeric descending
129 return locations.sort((a, b) => b - a);
130}
131
132/**
133 * Substring replace call to replace part of a string at a certain position

Callers 2

_processReplacementsMethod · 0.90
_processPatternMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected