UNPKG

verb

Version:

A project without documentation is like a project that doesn't exist. Verb solves this by making it dead simple to generate docs, using simple markdown templates, with zero configuration required.

13 lines (12 loc) 215 B
/** * Coerce the value to an array * * @param {name} arrayify * @param {Array|String} arr * * @return {Array} * @api public */ module.exports = function(arr) { return !Array.isArray(arr) ? [arr] : arr; };