added whole system from ola4doc
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
var isArguments = require('es5-ext/function/is-arguments')
|
||||
, 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;
|
||||
if (isArguments(value)) return true;
|
||||
return (typeof value[iteratorSymbol] === 'function');
|
||||
};
|
||||
Reference in New Issue
Block a user