verb
Version:
Verb makes it easy to build project documentation using simple markdown templates, with zero configuration required.
24 lines (20 loc) • 445 B
JavaScript
/**
* Verb <https://github.com/assemble/verb>
* Generate markdown documentation for GitHub projects.
*
* Copyright (c) 2014 Jon Schlinkert, Brian Woodward, contributors.
* Licensed under the MIT license.
*/
;
/**
* 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;
};