Skip to content

Determine if the JS environment has optional chaining support

License

Notifications You must be signed in to change notification settings

inspect-js/has-optional-chaining

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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