es-to-primitive

  • Version 1.3.4
  • Published
  • 47.5 kB
  • 6 dependencies
  • MIT license

Install

npm i es-to-primitive
yarn add es-to-primitive
pnpm add es-to-primitive

Overview

ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.

Index

Variables

variable ES2015

const ES2015: any;

    variable ES5

    const ES5: any;

      variable ES6

      const ES6: any;
      • Deprecated

      Functions

      function ToPrimitive

      ToPrimitive: typeof ToPrimitive;

        Type Aliases

        type ES2015

        type ES2015 = typeof es2015;

          type ES5

          type ES5 = typeof es5;

            type ES6

            type ES6 = typeof es6;
            • Deprecated

            type primitive

            type primitive = primitiveES6 | bigint;

              Package Files (1)

              Dependencies (6)

              Dev Dependencies (20)

              Peer Dependencies (0)

              No peer dependencies.

              Badge

              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/es-to-primitive.

              • Markdown
                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/es-to-primitive)
              • HTML
                <a href="https://www.jsdocs.io/package/es-to-primitive"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>