UNPKG

canonical

Version:

Canonical code style linter and formatter for JavaScript, SCSS, CSS and JSON.

9 lines (6 loc) 162 B
'use strict'; var is = require('./is'); module.exports = function (x) { if (is(x)) return x; throw new TypeError(x + " is not an iterable or array-like"); };