@engine9-io/input-tools 1.6.3 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
@@ -49,6 +49,8 @@ handlebars.registerHelper('json', (d) => JSON.stringify(d));
|
|
49
49
|
|
50
50
|
handlebars.registerHelper('percent', (a, b) => `${((100 * a) / b).toFixed(2)}%`);
|
51
51
|
|
52
|
+
handlebars.registerHelper('or', (a, b, c) => a || b || c);
|
53
|
+
|
52
54
|
function isValidDate(d) {
|
53
55
|
// we WANT to use isNaN, not the Number.isNaN -- we're checking the date type
|
54
56
|
// eslint-disable-next-line no-restricted-globals
|