Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-keyword-js

crissdev158.1kMIT1.0.3

A simple way to check if a string is a keyword or reserved keyword in JavaScript

javascript, keyword, reserved

readme

is-keyword-js

Build Status

Check if a given string is a Javascript keyword or reserved for future keywords.

Install

$ npm install --save is-keyword-js

Usage

var isKeyword = require('is-keyword-js');
isKeyword('this'); // returns true

LICENSE

MIT © Cristian Trifan