/has-optional-chaining

Determine if the JS environment has optional chaining support

Primary LanguageJavaScriptMIT LicenseMIT

has-optional-chaining Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Determine if the JS environment has optional chaining support.

Example

var hasOptionalChaining = require('has-optional-chaining');

hasOptionalChaining() === true; // if the environment has native optional chaining support.

Tests

Simply clone the repo, npm install, and run npm test