main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
571 bytes
|
Rev | Line | |
---|
[d565449] | 1 | import isStrictComparable from './_isStrictComparable.js';
|
---|
| 2 | import keys from './keys.js';
|
---|
| 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 = keys(object),
|
---|
| 13 | length = result.length;
|
---|
| 14 |
|
---|
| 15 | while (length--) {
|
---|
| 16 | var key = result[length],
|
---|
| 17 | value = object[key];
|
---|
| 18 |
|
---|
| 19 | result[length] = [key, value, isStrictComparable(value)];
|
---|
| 20 | }
|
---|
| 21 | return result;
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | export default getMatchData;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.