Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / lodash / internal / getMatchData.js
1 var isStrictComparable = require('./isStrictComparable'),
2     pairs = require('../object/pairs');
3
4 /**
5  * Gets the propery 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 = pairs(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;