to-string-x

WebJar for to-string-x

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

to-string-x
Last Version

Last Version

1.4.5
Release Date

Release Date

Type

Type

jar
Description

Description

to-string-x
WebJar for to-string-x
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/Xotic750/to-string-x

Download to-string-x

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/to-string-x/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>to-string-x</artifactId>
    <version>1.4.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/to-string-x/
implementation 'org.webjars.npm:to-string-x:1.4.5'
// https://jarcasting.com/artifacts/org.webjars.npm/to-string-x/
implementation ("org.webjars.npm:to-string-x:1.4.5")
'org.webjars.npm:to-string-x:jar:1.4.5'
<dependency org="org.webjars.npm" name="to-string-x" rev="1.4.5">
  <artifact name="to-string-x" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='to-string-x', version='1.4.5')
)
libraryDependencies += "org.webjars.npm" % "to-string-x" % "1.4.5"
[org.webjars.npm/to-string-x "1.4.5"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : cached-constructors-x jar [1.0.0,2)
org.webjars.npm : is-symbol jar [1.0.1,2)

Project Modules

There are no modules declared in this project.

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

to-string-x

ES6-compliant shim for ToString.

See: 7.1.12 ToString ( argument )

module.exports(value)string

The abstract operation ToString converts argument to a value of type String.

Kind: Exported function
Returns: string - The converted value.
Throws:

  • TypeError If value is a Symbol.
Param Type Description
value * The value to convert to a string.

Example

import $toString from 'to-string-x';

console.log($toString()); // 'undefined'
console.log($toString(null)); // 'null'
console.log($toString('abc')); // 'abc'
console.log($toString(true)); // 'true'
console.log($toString(Symbol('foo'))); // TypeError
console.log($toString(Symbol.iterator)); // TypeError
console.log($toString(Object(Symbol.iterator))); // TypeError
console.log($toString(Object.create(null))); // TypeError

Versions

Version
1.4.5
1.4.2