UNPKG

jsmp-infra-there-is-nothing-to-complain-about

Version:

Awesome two-function library with excess dependency

19 lines (14 loc) 424 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _lodash = require('lodash'); function PotatoArray() { var arr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; if ((0, _lodash.isArray)(arr)) { return new Array(arr.length).map(function (el) { return el = 'potato'; }); } } module.exports = { PotatoArray: PotatoArray };