MCPcopy Index your code
hub / github.com/deployd/deployd / castArrayLikeObject

Function castArrayLikeObject

test-app/public/sinon.js:15063–15065  ·  view source on GitHub ↗

* Casts `value` to an empty array if it's not an array like object. * * @private * @param {*} value The value to inspect. * @returns {Array|Object} Returns the cast array-like object.

(value)

Source from the content-addressed store, hash-verified

15061 * @returns {Array|Object} Returns the cast array-like object.
15062 */
15063 function castArrayLikeObject(value) {
15064 return isArrayLikeObject(value) ? value : [];
15065 }
15066
15067 /**
15068 * Casts `value` to `identity` if it's not a function.

Callers

nothing calls this directly

Calls 1

isArrayLikeObjectFunction · 0.85

Tested by

no test coverage detected