@lowentry/utils 1.16.1 → 1.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1341,7 +1341,7 @@ var LeUtils = {
1341
1341
  */
1342
1342
  flattenToArray: function () {
1343
1343
  var _flattenToArrayRecursive = function flattenToArrayRecursive(result, elements, optionalSkipHasOwnPropertyCheck) {
1344
- if (!LeUtils.supportsEach(elements)) {
1344
+ if (!LeUtils.supportsEach(elements) || typeof elements === 'string') {
1345
1345
  result.push(elements);
1346
1346
  return;
1347
1347
  }
@@ -1351,7 +1351,7 @@ var LeUtils = {
1351
1351
  };
1352
1352
  return function (elements) {
1353
1353
  var optionalSkipHasOwnPropertyCheck = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1354
- if (!LeUtils.supportsEach(elements)) {
1354
+ if (!LeUtils.supportsEach(elements) || typeof elements === 'string') {
1355
1355
  return [elements];
1356
1356
  }
1357
1357
  var result = [];