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

Package detail

is-es2016-keyword

inikulin2.7mMIT1.0.0

Determine if string is an ES2016 keyword.

ES2016, ECMAScript, keyword, ES6, ES7

readme

is-es2016-keyword

Build Status

Determine if string is an ES2016 keyword.

Install

npm install os-is-es2016-keyword

Usage

const isES2016Keyword = require('is-es2016-keyword');

console.log(isES2016Keyword('async')); // > true
console.log(isES2016Keyword('class')); // > true
console.log(isES2016Keyword('yo'));    // > false

Author

Ivan Nikulin (ifaaan@gmail.com)