MCPcopy
hub / github.com/vercel/hyper / getMatchData

Function getMatchData

bin/yarn-standalone.js:13693–13704  ·  view source on GitHub ↗

* Gets the property names, values, and compare flags of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the match data of `object`.

(object)

Source from the content-addressed store, hash-verified

13691 * @returns {Array} Returns the match data of `object`.
13692 */
13693 function getMatchData(object) {
13694 var result = keys(object),
13695 length = result.length;
13696
13697 while (length--) {
13698 var key = result[length],
13699 value = object[key];
13700
13701 result[length] = [key, value, isStrictComparable(value)];
13702 }
13703 return result;
13704 }
13705
13706 /**
13707 * Gets the native function at `key` of `object`.

Callers 3

baseMatchesFunction · 0.85
isMatchFunction · 0.85
isMatchWithFunction · 0.85

Calls 2

isStrictComparableFunction · 0.85
keysFunction · 0.70

Tested by

no test coverage detected