UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

11 lines (8 loc) 273 B
'use strict'; var iteratorSymbol = require('es6-symbol').iterator , isArrayLike = require('../object/is-array-like'); module.exports = function (x) { if (x == null) return false; if (typeof x[iteratorSymbol] === 'function') return true; return isArrayLike(x); };