{"_id":"handlebars-utils","_rev":"221926","name":"handlebars-utils","description":"Utils for handlebars helpers. Externalized from handlebars, to allow helpers to use the utils without having to depend on handlebars itself.","dist-tags":{"latest":"1.0.6"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:40:29.000Z","created":"2017-01-25T18:47:37.009Z","1.0.6":"2017-11-17T03:42:06.250Z","1.0.5":"2017-11-17T03:21:55.719Z","1.0.4":"2017-09-04T13:01:47.194Z","1.0.3":"2017-09-04T12:59:12.399Z","1.0.2":"2017-07-08T15:23:51.130Z","1.0.1":"2017-07-04T06:08:34.546Z","1.0.0":"2017-07-04T02:08:19.348Z","0.2.1":"2017-02-24T10:32:09.674Z","0.2.0":"2017-02-24T01:00:41.395Z","0.1.0":"2017-01-25T18:47:37.009Z"},"users":{"mjurincic":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/helpers/handlebars-utils.git"},"versions":{"1.0.6":{"name":"handlebars-utils","description":"Utils for handlebars helpers. Externalized from handlebars, to allow helpers to use the utils without having to depend on handlebars itself.","version":"1.0.6","homepage":"https://github.com/helpers/handlebars-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/helpers/handlebars-utils.git"},"bugs":{"url":"https://github.com/helpers/handlebars-utils/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^6.0.0","typeof-article":"^0.1.1"},"devDependencies":{"gulp-format-md":"^1.0.0","handlebars":"^4.0.11","mocha":"3.5.2"},"keywords":["handlebars","helpers","templates","utils"],"verb":{"toc":{"method":"preWrite"},"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["assemble","handlebars-helpers","template-helpers","templates"]},"lint":{"reflinks":true},"reflinks":["assemble","templates","verb"]},"gitHead":"ff39c2780a0791721faaf32231ecba3e8ac045a0","_id":"handlebars-utils@1.0.6","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"cb9db43362479054782d86ffe10f47abc76357f9","size":6794,"noattachment":false,"key":"/handlebars-utils/-/handlebars-utils-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/handlebars-utils/download/handlebars-utils-1.0.6.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/handlebars-utils-1.0.6.tgz_1510890125150_0.12188934744335711"},"directories":{},"publish_time":1510890126250,"_hasShrinkwrap":false,"_cnpm_publish_time":1510890126250},"1.0.5":{"name":"handlebars-utils","description":"Utils for handlebars helpers. Externalized from handlebars, to allow helpers to use the utils without having to depend on handlebars itself.","version":"1.0.5","homepage":"https://github.com/helpers/handlebars-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/helpers/handlebars-utils.git"},"bugs":{"url":"https://github.com/helpers/handlebars-utils/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^6.0.0","typeof-article":"^0.1.1"},"devDependencies":{"gulp-format-md":"^1.0.0","handlebars":"^4.0.11","mocha":"3.5.2"},"keywords":["handlebars","helpers","templates","utils"],"verb":{"toc":{"method":"preWrite"},"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["assemble","handlebars-helpers","template-helpers","templates"]},"lint":{"reflinks":true},"reflinks":["assemble","templates","verb"]},"gitHead":"d15edd7e093d6bd54ae468941661d0cb76c00635","_id":"handlebars-utils@1.0.5","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"dac22c9ab45e2228910e76050e7641f0de588fd4","size":6791,"noattachment":false,"key":"/handlebars-utils/-/handlebars-utils-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/handlebars-utils/download/handlebars-utils-1.0.5.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/handlebars-utils-1.0.5.tgz_1510888914666_0.7186560444533825"},"directories":{},"publish_time":1510888915719,"_hasShrinkwrap":false,"_cnpm_publish_time":1510888915719},"1.0.4":{"name":"handlebars-utils","description":"Utils for handlebars helpers. Externalized from handlebars, to allow helpers to use the utils without having to depend on handlebars itself.","version":"1.0.4","homepage":"https://github.com/helpers/handlebars-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/helpers/handlebars-utils.git"},"bugs":{"url":"https://github.com/helpers/handlebars-utils/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^5.0.2","typeof-article":"^0.1.1"},"devDependencies":{"gulp-format-md":"^1.0.0","handlebars":"^4.0.10","mocha":"^3.5.0"},"keywords":["handlebars","templates","utils"],"verb":{"toc":{"method":"preWrite"},"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["assemble","handlebars-helpers","template-helpers","templates"]},"lint":{"reflinks":true},"reflinks":["assemble","templates","verb"]},"gitHead":"1139e4f427379e0f34c1186926ca0c0a9430ed05","_id":"handlebars-utils@1.0.4","_npmVersion":"5.4.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"f0c66f58c690fbf427f4f79ebe0b4cae4334cfe2","size":6790,"noattachment":false,"key":"/handlebars-utils/-/handlebars-utils-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/handlebars-utils/download/handlebars-utils-1.0.4.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/handlebars-utils-1.0.4.tgz_1504530106164_0.2640208858065307"},"directories":{},"publish_time":1504530107194,"_cnpm_publish_time":1504530107194,"_hasShrinkwrap":false},"1.0.3":{"name":"handlebars-utils","description":"Utils for handlebars helpers. Externalized from handlebars, to allow helpers to use the utils without having to depend on handlebars itself.","version":"1.0.3","homepage":"https://github.com/helpers/handlebars-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/helpers/handlebars-utils.git"},"bugs":{"url":"https://github.com/helpers/handlebars-utils/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^5.0.2","typeof-article":"^0.1.1"},"devDependencies":{"gulp-format-md":"^1.0.0","handlebars":"^4.0.10","mocha":"^3.5.0"},"keywords":["handlebars","templates","utils"],"verb":{"toc":{"method":"preWrite"},"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["assemble","handlebars-helpers","template-helpers","templates"]},"lint":{"reflinks":true},"reflinks":["assemble","templates","verb"]},"gitHead":"1299145e45639b1298f4a4238cc11e3cd2e4c902","_id":"handlebars-utils@1.0.3","_npmVersion":"5.4.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"6dccfdca5773853d32ab6e144309773a3cb1f758","size":6778,"noattachment":false,"key":"/handlebars-utils/-/handlebars-utils-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/handlebars-utils/download/handlebars-utils-1.0.3.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/handlebars-utils-1.0.3.tgz_1504529951353_0.2857196996919811"},"directories":{},"publish_time":1504529952399,"_cnpm_publish_time":1504529952399,"_hasShrinkwrap":false},"1.0.2":{"name":"handlebars-utils","description":"Utils for handlebars helpers. Externalized from handlebars, to allow helpers to use the utils without having to depend on handlebars itself.","version":"1.0.2","homepage":"https://github.com/helpers/handlebars-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/helpers/handlebars-utils.git"},"bugs":{"url":"https://github.com/helpers/handlebars-utils/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^5.0.0","typeof-article":"^0.1.1"},"devDependencies":{"gulp-format-md":"^1.0.0","handlebars":"^4.0.10","mocha":"^3.4.2"},"keywords":["handlebars","templates","utils"],"verb":{"toc":{"method":"preWrite"},"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["assemble","handlebars-helpers","template-helpers","templates"]},"lint":{"reflinks":true},"reflinks":["assemble","templates","verb"]},"gitHead":"04e8adc4efb455606aa25c14156fcb86dafa00f4","_id":"handlebars-utils@1.0.2","_npmVersion":"5.1.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"146b9a283c20d20ac035badba6f31c2f05604b03","size":6661,"noattachment":false,"key":"/handlebars-utils/-/handlebars-utils-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/handlebars-utils/download/handlebars-utils-1.0.2.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/handlebars-utils-1.0.2.tgz_1499527430016_0.643813801696524"},"directories":{},"publish_time":1499527431130,"_hasShrinkwrap":false,"_cnpm_publish_time":1499527431130},"1.0.1":{"name":"handlebars-utils","description":"Utils for handlebars helpers. Externalized from handlebars, to allow helpers to use the utils without having to depend on handlebars itself.","version":"1.0.1","homepage":"https://github.com/helpers/handlebars-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/helpers/handlebars-utils.git"},"bugs":{"url":"https://github.com/helpers/handlebars-utils/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^5.0.0","typeof-article":"^0.1.1"},"devDependencies":{"gulp-format-md":"^1.0.0","handlebars":"^4.0.10","mocha":"^3.4.2"},"keywords":["handlebars","templates","utils"],"verb":{"toc":{"method":"preWrite"},"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["assemble","templates","handlebars-helpers","template-helpers"]},"lint":{"reflinks":true},"reflinks":["assemble","templates","verb"]},"gitHead":"0233ce2f976fc0985ae16f1f5808a6917220843b","_id":"handlebars-utils@1.0.1","_npmVersion":"5.0.4","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"5dc903bac11d0727727e4d9ca3e4756c8db3d390","size":6637,"noattachment":false,"key":"/handlebars-utils/-/handlebars-utils-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/handlebars-utils/download/handlebars-utils-1.0.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/handlebars-utils-1.0.1.tgz_1499148513511_0.28433215455152094"},"directories":{},"publish_time":1499148514546,"_hasShrinkwrap":false,"_cnpm_publish_time":1499148514546},"1.0.0":{"name":"handlebars-utils","description":"Utils for handlebars helpers. Externalized from handlebars, to allow helpers to use the utils without having to depend on handlebars itself.","version":"1.0.0","homepage":"https://github.com/helpers/handlebars-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/helpers/handlebars-utils.git"},"bugs":{"url":"https://github.com/helpers/handlebars-utils/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^5.0.0","typeof-article":"^0.1.1"},"devDependencies":{"gulp-format-md":"^1.0.0","handlebars":"^4.0.10","mocha":"^3.4.2"},"keywords":["handlebars","templates","utils"],"verb":{"toc":{"method":"preWrite"},"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["assemble","templates","handlebars-helpers","template-helpers"]},"lint":{"reflinks":true},"reflinks":["assemble","templates","verb"]},"gitHead":"6de0ca4bf6b6188adede2b29e75d4ed1e175d3f1","_id":"handlebars-utils@1.0.0","_npmVersion":"5.0.4","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"abb705523ffcf021750774ed57bcbf107ed15f3d","size":6605,"noattachment":false,"key":"/handlebars-utils/-/handlebars-utils-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/handlebars-utils/download/handlebars-utils-1.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/handlebars-utils-1.0.0.tgz_1499134098264_0.8300067156087607"},"directories":{},"publish_time":1499134099348,"_hasShrinkwrap":false,"_cnpm_publish_time":1499134099348},"0.2.1":{"name":"handlebars-utils","description":"Utils for handlebars helpers. Externalized from handlebars, to allow helpers to use the utils without having to depend on handlebars itself.","version":"0.2.1","homepage":"https://github.com/helpers/handlebars-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/helpers/handlebars-utils.git"},"bugs":{"url":"https://github.com/helpers/handlebars-utils/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.11","handlebars":"^4.0.6","mocha":"^3.2.0"},"keywords":["handlebars","templates","utils"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"helpers":["./methods.js"],"related":{"list":["handlebars-helpers","template-helpers"]},"lint":{"reflinks":true}},"dependencies":{"kind-of":"^3.1.0","typeof-article":"^0.1.1"},"gitHead":"209a6b91dedbfd5976e9bebb377589ddbf6b63fc","_id":"handlebars-utils@0.2.1","_shasum":"ae03aabc7f42e8632063571c095e42d5f56252cc","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ae03aabc7f42e8632063571c095e42d5f56252cc","size":5442,"noattachment":false,"key":"/handlebars-utils/-/handlebars-utils-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/handlebars-utils/download/handlebars-utils-0.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/handlebars-utils-0.2.1.tgz_1487932327794_0.1434832636732608"},"directories":{},"publish_time":1487932329674,"_cnpm_publish_time":1487932329674,"_hasShrinkwrap":false},"0.2.0":{"name":"handlebars-utils","description":"Utils for handlebars helpers. Externalized from handlebars, to allow helpers to use the utils without having to depend on handlebars itself.","version":"0.2.0","homepage":"https://github.com/helpers/handlebars-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/helpers/handlebars-utils.git"},"bugs":{"url":"https://github.com/helpers/handlebars-utils/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.11","handlebars":"^4.0.6","mocha":"^3.2.0"},"keywords":["handlebars","templates","utils"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"helpers":["./methods.js"],"related":{"list":["handlebars-helpers","template-helpers"]},"lint":{"reflinks":true}},"dependencies":{"kind-of":"^3.1.0","typeof-article":"^0.1.1"},"gitHead":"a06d9a61981e52f17bacb1148b60af792252a653","_id":"handlebars-utils@0.2.0","_shasum":"6f20d5353c496a5cf036317cc84eed45f2189a5d","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"6f20d5353c496a5cf036317cc84eed45f2189a5d","size":5467,"noattachment":false,"key":"/handlebars-utils/-/handlebars-utils-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/handlebars-utils/download/handlebars-utils-0.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/handlebars-utils-0.2.0.tgz_1487898039382_0.27746523497626185"},"directories":{},"publish_time":1487898041395,"_cnpm_publish_time":1487898041395,"_hasShrinkwrap":false},"0.1.0":{"name":"handlebars-utils","description":"Utils for handlebars helpers. Externalized from handlebars, to allow helpers to use the utils without having to depend on handlebars itself.","version":"0.1.0","homepage":"https://github.com/helpers/handlebars-utils","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/helpers/handlebars-utils.git"},"bugs":{"url":"https://github.com/helpers/handlebars-utils/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.11","handlebars":"^4.0.6","mocha":"^3.2.0"},"keywords":["handlebars","templates","utils"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"helpers":["./methods.js"],"related":{"list":["handlebars-helpers","template-helpers"]},"lint":{"reflinks":true}},"gitHead":"a06d9a61981e52f17bacb1148b60af792252a653","_id":"handlebars-utils@0.1.0","_shasum":"960f1ce588ced824b8d3ab389b05e47f1b2e2990","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"960f1ce588ced824b8d3ab389b05e47f1b2e2990","size":3587,"noattachment":false,"key":"/handlebars-utils/-/handlebars-utils-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/handlebars-utils/download/handlebars-utils-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/handlebars-utils-0.1.0.tgz_1485370056190_0.8021540679037571"},"directories":{},"publish_time":1485370057009,"_cnpm_publish_time":1485370057009,"_hasShrinkwrap":false}},"readme":"# handlebars-utils [![NPM version](https://img.shields.io/npm/v/handlebars-utils.svg?style=flat)](https://www.npmjs.com/package/handlebars-utils) [![NPM monthly downloads](https://img.shields.io/npm/dm/handlebars-utils.svg?style=flat)](https://npmjs.org/package/handlebars-utils) [![NPM total downloads](https://img.shields.io/npm/dt/handlebars-utils.svg?style=flat)](https://npmjs.org/package/handlebars-utils) [![Linux Build Status](https://img.shields.io/travis/helpers/handlebars-utils.svg?style=flat&label=Travis)](https://travis-ci.org/helpers/handlebars-utils)\n\n> Utils for handlebars helpers. Externalized from handlebars, to allow helpers to use the utils without having to depend on handlebars itself.\n\nFollow this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), for updates on this project and others.\n\n- [Install](#install)\n- [Usage](#usage)\n- [API](#api)\n  * [.isBlock](#isblock)\n  * [.fn](#fn)\n  * [.inverse](#inverse)\n  * [.value](#value)\n  * [.isOptions](#isoptions)\n  * [.isUndefined](#isundefined)\n  * [.isApp](#isapp)\n  * [.options](#options)\n  * [.context](#context)\n  * [.isObject](#isobject)\n  * [.isEmpty](#isempty)\n  * [.result](#result)\n  * [.identity](#identity)\n  * [.isString](#isstring)\n  * [.arrayify](#arrayify)\n  * [.tryParse](#tryparse)\n- [About](#about)\n  * [Related projects](#related-projects)\n  * [Contributing](#contributing)\n  * [Building docs](#building-docs)\n  * [Running tests](#running-tests)\n  * [Author](#author)\n  * [License](#license)\n\n_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save handlebars-utils\n```\n\n## Usage\n\n```js\nvar utils = require('handlebars-utils');\n```\n\n## API\n\n### [.isBlock](index.js#L156)\n\nReturns true if a helper is a block helper.\n\n**Params**\n\n* `options` **{Object}**: Helper options object\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nHandlebars.registerHelper('example', function(options) {\n  if (utils.isBlock(options)) {\n    // do something if this is a block helper\n  } else {\n    // do something else if this is a not block helper\n  }\n});\n```\n\n### [.fn](index.js#L177)\n\nReturns the given value or renders the block if it's a block helper.\n\n**Params**\n\n* `val` **{any}**\n* `options` **{Object}**\n* `context` **{Object}**\n* `returns` **{String}**: Either returns the value, or renders the block.\n\n**Example**\n\n```js\nHandlebars.registerHelper('example', function(val, locals, options) {\n  return utils.fn(val, locals, options);\n});\n```\n\n### [.inverse](index.js#L202)\n\nReturns the given value or renders the inverse block if it's a block helper.\n\n**Params**\n\n* `val` **{any}**\n* `options` **{Object}**\n* `context` **{Object}**\n* `returns` **{String}**: Either returns the value, or renders the inverse block.\n\n**Example**\n\n```js\nHandlebars.registerHelper('example', function(val, locals, options) {\n  return utils.inverse(val, locals, options);\n});\n```\n\n### [.value](index.js#L229)\n\nGets the return value for a helper, by either rendering the block or inverse block if it's a block helper, or returning the given value (when truthy) or an empty string (when falsey) if it's a non-block expression.\n\n**Params**\n\n* `val` **{any}**\n* `options` **{Object}**\n* `context` **{Object}**\n* `returns` **{String}**\n\n**Example**\n\n```js\nHandlebars.registerHelper('example', function(val, locals, options) {\n  return utils.value(val, locals, options);\n});\n```\n\n### [.isOptions](index.js#L259)\n\nReturns true if the given value is a handlebar `options` object.\n\n**Params**\n\n* `val` **{Object}**\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nHandlebars.registerHelper('example', function(val, locals, options) {\n  if (utils.isOptions(locals)) {\n    options = locals;\n    locals = {};\n  }\n  // do stuff\n});\n```\n\n### [.isUndefined](index.js#L280)\n\nReturns true if the given value is `undefined` or is a handlebars options hash (which means that a value was not passed by the user).\n\n**Params**\n\n* `value` **{any}**\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nHandlebars.registerHelper('example', function(val, options) {\n  if (utils.isUndefined(val)) {\n    return '';\n  }\n  // do stuff\n});\n```\n\n### [.isApp](index.js#L303)\n\nReturns true if an `app` propery is on the context, which means the context was created by [assemble](https://github.com/assemble/assemble), [templates](https://github.com/jonschlinkert/templates), [verb](https://github.com/verbose/verb), or any other library that follows this convention.\n\n**Params**\n\n* `value` **{any}**\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nHandlebars.registerHelper('example', function(val, options) {\n  var context = options.hash;\n  if (utils.isApp(this)) {\n    context = Object.assign({}, this.context, context);\n  }\n  // do stuff\n});\n```\n\n### [.options](index.js#L322)\n\nCreates an options object from the `context`, `locals` and `options.`\nHandlebars' `options.hash` is merged onto the options, and if the context\nis created by [templates](https://github.com/jonschlinkert/templates), `this.options` will be merged onto the\noptions as well.\n\n**Params**\n\n* `context` **{Object}**\n* `locals` **{Object}**: Options or locals\n* `options` **{Object}**\n* `returns` **{Boolean}**\n\n### [.context](index.js#L351)\n\nGet the context to use for rendering.\n\n**Params**\n\n* `thisArg` **{Object}**: Optional invocation context `this`\n* `returns` **{Object}**\n\n### [.isObject](index.js#L398)\n\nReturns true if the given value is an object.\n\n**Params**\n\n* `val` **{Object}**\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nconsole.log(utils.isObject(null));\n//=> false\nconsole.log(utils.isObject([]));\n//=> false\nconsole.log(utils.isObject(function() {}));\n//=> false\nconsole.log(utils.isObject({}));\n//=> true\n```\n\n### [.isEmpty](index.js#L421)\n\nReturns true if the given value is \"empty\".\n\n**Params**\n\n* `value` **{any}**\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\nconsole.log(utils.isEmpty(0));\n//=> false\nconsole.log(utils.isEmpty(''));\n//=> true\nconsole.log(utils.isEmpty([]));\n//=> true\nconsole.log(utils.isEmpty({}));\n//=> true\n```\n\n### [.result](index.js#L454)\n\nReturns the given value. If the value is a function it will be called with the current context, otherwise the value is returned.\n\n**Params**\n\n* `val` **{any}**\n* `returns` **{any}**\n\n**Example**\n\n```js\nconsole.log(utils.result('foo'));\n//=> 'foo'\nconsole.log(utils.result(function() {\n  return 'foo';\n}));\n//=> 'foo'\n```\n\n### [.identity](index.js#L477)\n\nReturns the given value as-is, unchanged.\n\n**Params**\n\n* `val` **{any}**\n* `returns` **{any}**\n\n**Example**\n\n```js\nconsole.log(utils.result('foo'));\n//=> 'foo'\nconsole.log(utils.result(function() {\n  return 'foo';\n}));\n//=> [function]\n```\n\n### [.isString](index.js#L489)\n\nReturn true if `val` is a non-empty string.\n\n**Params**\n\n* `val` **{any}**: The value to check\n* `returns` **{Boolean}**\n\n### [.arrayify](index.js#L509)\n\nCast the given `val` to an array.\n\n**Params**\n\n* `val` **{any}**\n* `returns` **{Array}**\n\n**Example**\n\n```js\nconsole.log(utils.arrayify(''));\n//=> []\nconsole.log(utils.arrayify('foo'));\n//=> ['foo']\nconsole.log(utils.arrayify(['foo']));\n//=> ['foo']\n```\n\n### [.tryParse](index.js#L522)\n\nTry to parse the given `string` as JSON. Fails\ngracefully and always returns an object if the value cannot be parsed.\n\n**Params**\n\n* `string` **{String}**\n* `returns` **{Object}**\n\n## About\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [assemble](https://www.npmjs.com/package/assemble): Get the rocks out of your socks! Assemble makes you fast at creating web projects… [more](https://github.com/assemble/assemble) | [homepage](https://github.com/assemble/assemble \"Get the rocks out of your socks! Assemble makes you fast at creating web projects. Assemble is used by thousands of projects for rapid prototyping, creating themes, scaffolds, boilerplates, e-books, UI components, API documentation, blogs, building websit\")\n* [handlebars-helpers](https://www.npmjs.com/package/handlebars-helpers): More than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate… [more](https://github.com/helpers/handlebars-helpers) | [homepage](https://github.com/helpers/handlebars-helpers \"More than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate, Verb, Ghost, gulp-handlebars, grunt-handlebars, consolidate, or any node.js/Handlebars project.\")\n* [template-helpers](https://www.npmjs.com/package/template-helpers): Generic JavaScript helpers that can be used with any template engine. Handlebars, Lo-Dash, Underscore, or… [more](https://github.com/jonschlinkert/template-helpers) | [homepage](https://github.com/jonschlinkert/template-helpers \"Generic JavaScript helpers that can be used with any template engine. Handlebars, Lo-Dash, Underscore, or any engine that supports helper functions.\")\n* [templates](https://www.npmjs.com/package/templates): System for creating and managing template collections, and rendering templates with any node.js template engine… [more](https://github.com/jonschlinkert/templates) | [homepage](https://github.com/jonschlinkert/templates \"System for creating and managing template collections, and rendering templates with any node.js template engine. Can be used as the basis for creating a static site generator or blog framework.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\nPlease read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on September 04, 2017._","_attachments":{},"homepage":"https://github.com/helpers/handlebars-utils","bugs":{"url":"https://github.com/helpers/handlebars-utils/issues"},"license":"MIT"}