UNPKG

@codeparticle/formal

Version:

A <2kb library for validating data of any kind

20 lines (15 loc) 536 B
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _chunkYSLAWOV5js = require('./chunk-YSLAWOV5.js'); // src/rules/is-array.ts var isArray = _chunkYSLAWOV5js.createRule.call(void 0, { condition: (maybeArr) => Array.isArray(maybeArr), message: (notArray) => `Value must be an array, but has type ${typeof notArray}` }); exports.isArray = isArray; /** * @file Check to see if a value is an array * @name isArray.js * @author Nick Krause * @license MIT */ //# sourceMappingURL=chunk-BP4FOFVD.js.map