has-optional-chaining

1.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i has-optional-chaining

    Weekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    8.02 kB

    Total Files

    10

    Last publish

    Collaborators

    • ljharb