]> git.r.bdr.sh - rbdr/dotfiles/blob
bbcf10492e1dc014741854ba4c86e52fb294ae56
[rbdr/dotfiles] /
1 'use strict';
2
3 var isString = require('es5-ext/string/is-string')
4 , iteratorSymbol = require('es6-symbol').iterator
5
6 , isArray = Array.isArray;
7
8 module.exports = function (value) {
9 if (value == null) return false;
10 if (isArray(value)) return true;
11 if (isString(value)) return true;
12 return (typeof value[iteratorSymbol] === 'function');
13 };