guardz
Version:
A simple and lightweight TypeScript type guard library for runtime type validation.
12 lines (11 loc) • 521 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isNonEmptyArrayWithEachItem = isNonEmptyArrayWithEachItem;
const isArrayWithEachItem_1 = require("./isArrayWithEachItem");
const isNonEmptyArray_1 = require("./isNonEmptyArray");
function isNonEmptyArrayWithEachItem(predicate) {
return function (value, config) {
return ((0, isArrayWithEachItem_1.isArrayWithEachItem)(predicate)(value, config) &&
(0, isNonEmptyArray_1.isNonEmptyArray)(value, config));
};
}