brain-cli
Version:
A command line tool used to run projects
23 lines (22 loc) • 807 B
JavaScript
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports"], factory);
}
})(function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.filterEmptySlots = void 0;
function filterEmptySlots(arr) {
return arr.reduce((previousValue, currentValue) => {
if (currentValue != null && currentValue != undefined) {
previousValue.push(currentValue);
}
return previousValue;
}, []);
}
exports.filterEmptySlots = filterEmptySlots;
});