diff --git a/helpers/typeof.js b/helpers/typeof.js new file mode 100644 index 0000000..ee00519 --- /dev/null +++ b/helpers/typeof.js @@ -0,0 +1,14 @@ +'use strict'; +const common = require('./lib/common.js'); + +const factory = globals => { + return function(data) { + data = common.unwrapIfSafeString(globals.handlebars, data); + return typeof data; + }; +}; + +module.exports = [{ + name: 'typeof', + factory: factory, +}];