MCPcopy Create free account
hub / github.com/RubyLouvre/anu / getMatchData

Function getMatchData

test/babel.js:52887–52898  ·  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

52885 * @returns {Array} Returns the match data of `object`.
52886 */
52887 function getMatchData(object) {
52888 var result = keys(object),
52889 length = result.length;
52890
52891 while (length--) {
52892 var key = result[length],
52893 value = object[key];
52894
52895 result[length] = [key, value, isStrictComparable(value)];
52896 }
52897 return result;
52898 }
52899
52900 module.exports = getMatchData;
52901

Callers 1

baseMatchesFunction · 0.85

Calls 2

keysFunction · 0.85
isStrictComparableFunction · 0.85

Tested by

no test coverage detected