New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

get-constructor-name

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-constructor-name

Get the Name of a JavaScript Function's Constructor. Returns String or Undefined.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

get-constructor-name

Get the Name of a JavaScript Function's Constructor. Returns String or Undefined.

features

  • guaranteed to return string or undefined
  • doesn't throw errors

install

npm install get-constructor-name

usage

import getConstructorName from "get-constructor-name";

const arrayBuffer = new ArrayBuffer();

getConstructorName(arrayBuffer) // ArrayBuffer
getConstructorName(100) // undefined
getConstructorName(null) // undefined

Keywords

class

FAQs

Package last updated on 12 Dec 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