/is-kotlin-keyword

Check if the provided string is a Kotlin keyword

Primary LanguageJavaScriptMIT LicenseMIT

npm version Dependencies

is-kotlin-keyword

Determine whether a string is a Kotlin keyword.

Install

https://nodei.co/npm/is-kotlin-keyword.png

Use

// load the module
var isKotlinKeyword = require('index.js');

// check a keyword
isKotlinKeyword("while"); // true

Test

To execute tests, first install the project dependencies:

$ npm install | yarn install

Then, run the tests

$ npm test