add initial marp implementation with sample content and build configuration
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.wrapArray = exports.default = void 0;
|
||||
/** @module */
|
||||
/**
|
||||
* Wrap value in array if it is not an array.
|
||||
*
|
||||
* @function wrapArray
|
||||
* @param {*} valOrArr
|
||||
* @return {Array}
|
||||
*/
|
||||
const wrapArray = valOrArr => {
|
||||
if (valOrArr == null || valOrArr === false) return [];
|
||||
if (valOrArr instanceof Array) return valOrArr;
|
||||
return [valOrArr];
|
||||
};
|
||||
exports.wrapArray = wrapArray;
|
||||
var _default = exports.default = wrapArray;
|
||||
Reference in New Issue
Block a user