MCPcopy Create free account
hub / github.com/microsoft/SandDance / toArray

Function toArray

docs/app/js/sanddance-app.js:92702–92704  ·  view source on GitHub ↗

* convert array-like objects to real arrays * @param {Object} obj * @returns {Array}

(obj)

Source from the content-addressed store, hash-verified

92700 * @param {Object} obj
92701 * @returns {Array}
92702 */ function toArray(obj) {
92703 return Array.prototype.slice.call(obj, 0);
92704 }
92705 /**
92706 * unique array with objects based on a key (like 'id') or just by the array's value
92707 * @param {Array} src [{id:1},{id:2},{id:1}]

Callers 3

getArraySetterFunction · 0.70
normalizeSingleTouchesFunction · 0.70
getTouchesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected