lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
11 lines • 385 B
JavaScript
/**
* A validator function which checks whether an input value is null or any other
* type. If null, then the validator chain is stopped and null is returned,
* otherwise, the validator chain is not stopped and the value is returned.
*
* @category XML
*/
export function validateNullable(value) {
return [value, value === null];
}
//# sourceMappingURL=validateNullable.js.map