MCPcopy
hub / github.com/julianshapiro/velocity / isWrapped

Function isWrapped

velocity.js:108–110  ·  view source on GitHub ↗

* Check if a variable is an array-like wrapped jQuery, Zepto or similar, where * each indexed value is a Node.

(variable)

Source from the content-addressed store, hash-verified

106 * each indexed value is a Node.
107 */
108 function isWrapped(variable) {
109 return variable && variable !== window && isNumber(variable.length) && !isString(variable) && !isFunction(variable) && !isNode(variable) && (variable.length === 0 || isNode(variable[0]));
110 }
111 /**
112 * Check is a property is an enumerable member of an object.
113 */

Callers 1

Velocity$1Function · 0.70

Calls 4

isNumberFunction · 0.70
isStringFunction · 0.70
isFunctionFunction · 0.70
isNodeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…