JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13856
  • Score
    100M100P100Q144358F
  • License MIT

Requires an argument is corecible then converts using ToString.

Package Exports

  • require-coercible-to-string-x

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (require-coercible-to-string-x) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

require-coercible-to-string-x

Requires an argument is corecible then converts using ToString.

Version: 1.0.2
Author: Xotic750 Xotic750@gmail.com
License: MIT
Copyright: Xotic750

module.exports(value)string

This method requires an argument is corecible then converts using ToString.

Kind: Exported function
Returns: string - The value as a string.
Throws:

  • TypeError If value is null or undefined.
Param Type Description
value * The value to converted to a string.

Example

import requireCoercibleToString from 'require-coercible-to-string-x';

requireCoercibleToString(); // TypeError
requireCoercibleToString(null); // TypeError
requireCoercibleToString(Symbol('')); // TypeError
requireCoercibleToString(Object.create(null)); // TypeError
console.log(requireCoercibleToString(1)); // '1'
console.log(requireCoercibleToString(true)); // 'true'