UNPKG

is-keyword

Version:

Checks if the given token is an ES keyword.

33 lines (21 loc) 487 B
# is-keyword [![Build Status](https://travis-ci.org/hemanth/is-keyword.svg?branch=master)](https://travis-ci.org/hemanth/is-keyword) > Checks if the given token is an ES keyword. ## Install ```sh $ npm install --save is-keyword ``` ```sh $ bower install --save is-keyword ``` ```sh $ component install hemanth/is-keyword ``` ## Usage ##### Node.js ```js var isKeyword = require('is-keyword'); isKeyword('let'); //=> true ``` ## License MIT © [Hemanth.HM](http://h3manth.com)