a1456d2401ee50b0ae80e6562a7ccd48ebf24cad
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / _getMatchData.js
1 var isStrictComparable = require('./_isStrictComparable'),
2     toPairs = require('./toPairs');
3
4 /**
5  * Gets the property names, values, and compare flags of `object`.
6  *
7  * @private
8  * @param {Object} object The object to query.
9  * @returns {Array} Returns the match data of `object`.
10  */
11 function getMatchData(object) {
12   var result = toPairs(object),
13       length = result.length;
14
15   while (length--) {
16     result[length][2] = isStrictComparable(result[length][1]);
17   }
18   return result;
19 }
20
21 module.exports = getMatchData;