UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

16 lines 437 B
/** * A validator function which checks whether an input value is an object. * Doesn't stop the validator chain. * * @category XML */ export function validateObject(value) { if (typeof value !== 'object') { throw new Error('Invalid object; not an object type'); } if (value === null) { throw new Error('Invalid object; null'); } return [value, false]; } //# sourceMappingURL=validateObject.js.map