lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
13 lines • 352 B
JavaScript
/**
* A validator function which checks whether an input value is an array. Doesn't
* stop the validator chain.
*
* @category XML
*/
export function validateArray(value) {
if (!Array.isArray(value)) {
throw new Error('Invalid array; Array.isArray is false');
}
return [value, false];
}
//# sourceMappingURL=validateArray.js.map