initial commit
This commit is contained in:
13
node_modules/es6-iterator/is-iterable.js
generated
vendored
Normal file
13
node_modules/es6-iterator/is-iterable.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
var isString = require('es5-ext/string/is-string')
|
||||
, iteratorSymbol = require('es6-symbol').iterator
|
||||
|
||||
, isArray = Array.isArray;
|
||||
|
||||
module.exports = function (value) {
|
||||
if (value == null) return false;
|
||||
if (isArray(value)) return true;
|
||||
if (isString(value)) return true;
|
||||
return (typeof value[iteratorSymbol] === 'function');
|
||||
};
|
||||
Reference in New Issue
Block a user