Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

has-optional-chaining

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-optional-chaining

Determine if the JS environment has optional chaining support

Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

has-optional-chaining Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Determine if the JS environment has template literal support.

Example

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

hasOptionalChaining() === true; // if the environment has native template literal support.

Tests

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

Keywords

javascript

FAQs

Package last updated on 12 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts