handlebars-helper-inarray

0.1.0 • Public • Published

handlebars-helper-inarray NPM version

Handlebars helper. Return true if a value exists in an array. Faster than using indexOf and won't blow up on null values.

Install

Install with npm:

npm i handlebars-helper-inarray --save

Usage

var inArray = require('in-array');
var Handlebars = require('handlebars');
Handlebars.registerHelper('inArray', inArray);

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on June 26, 2014.

/handlebars-helper-inarray/

    Package Sidebar

    Install

    npm i handlebars-helper-inarray

    Weekly Downloads

    6

    Version

    0.1.0

    License

    none

    Last publish

    Collaborators

    • jonschlinkert