ml-array-sequential-fill
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -1,2 +0,2 @@ | ||
import isArray from 'is-any-array'; | ||
import { isAnyArray } from 'is-any-array'; | ||
@@ -34,3 +34,3 @@ function _typeof(obj) { | ||
if (_typeof(input) === 'object' && !isArray(input)) { | ||
if (_typeof(input) === 'object' && !isAnyArray(input)) { | ||
options = input; | ||
@@ -40,3 +40,3 @@ input = []; | ||
if (!isArray(input)) { | ||
if (!isAnyArray(input)) { | ||
throw new TypeError('input must be an array'); | ||
@@ -43,0 +43,0 @@ } |
'use strict'; | ||
var isArray = require('is-any-array'); | ||
var isAnyArray = require('is-any-array'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray); | ||
/** | ||
@@ -20,3 +16,3 @@ * Fill an array with sequential numbers | ||
function sequentialFill(input = [], options = {}) { | ||
if (typeof input === 'object' && !isArray__default['default'](input)) { | ||
if (typeof input === 'object' && !isAnyArray.isAnyArray(input)) { | ||
options = input; | ||
@@ -26,3 +22,3 @@ input = []; | ||
if (!isArray__default['default'](input)) { | ||
if (!isAnyArray.isAnyArray(input)) { | ||
throw new TypeError('input must be an array'); | ||
@@ -29,0 +25,0 @@ } |
{ | ||
"name": "ml-array-sequential-fill", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "Create an array with sequential numbers", | ||
@@ -26,5 +26,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"is-any-array": "^1.0.0" | ||
"is-any-array": "^2.0.0" | ||
}, | ||
"gitHead": "207c5e6e1486b2d22fdfec7b7a3b6867fe50a69e" | ||
"gitHead": "787f12ca8c7c39063a349e2da17152742bea67b1" | ||
} |
@@ -1,2 +0,2 @@ | ||
import isArray from 'is-any-array'; | ||
import { isAnyArray } from 'is-any-array'; | ||
@@ -14,3 +14,3 @@ /** | ||
export default function sequentialFill(input = [], options = {}) { | ||
if (typeof input === 'object' && !isArray(input)) { | ||
if (typeof input === 'object' && !isAnyArray(input)) { | ||
options = input; | ||
@@ -20,3 +20,3 @@ input = []; | ||
if (!isArray(input)) { | ||
if (!isAnyArray(input)) { | ||
throw new TypeError('input must be an array'); | ||
@@ -23,0 +23,0 @@ } |
11147
298
+ Addedis-any-array@2.0.1(transitive)
- Removedis-any-array@1.0.1(transitive)
Updatedis-any-array@^2.0.0