UNPKG

fabric

Version:

Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

13 lines (11 loc) 286 B
/** * * @param value value to check if NaN * @param [valueIfNaN] * @returns `fallback` is `value is NaN */ const ifNaN = (value, valueIfNaN) => { return isNaN(value) && typeof valueIfNaN === 'number' ? valueIfNaN : value; }; export { ifNaN }; //# sourceMappingURL=ifNaN.mjs.map