Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / node_modules / grunt-legacy-log-utils / node_modules / lodash / _indexKeys.js
1 var baseTimes = require('./_baseTimes'),
2     isArguments = require('./isArguments'),
3     isArray = require('./isArray'),
4     isLength = require('./isLength'),
5     isString = require('./isString');
6
7 /**
8  * Creates an array of index keys for `object` values of arrays,
9  * `arguments` objects, and strings, otherwise `null` is returned.
10  *
11  * @private
12  * @param {Object} object The object to query.
13  * @returns {Array|null} Returns index keys, else `null`.
14  */
15 function indexKeys(object) {
16   var length = object ? object.length : undefined;
17   if (isLength(length) &&
18       (isArray(object) || isString(object) || isArguments(object))) {
19     return baseTimes(length, String);
20   }
21   return null;
22 }
23
24 module.exports = indexKeys;