require-coercible-to-string-x

WebJar for require-coercible-to-string-x

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

require-coercible-to-string-x
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

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

Project URL

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

Source Code Management

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

Download require-coercible-to-string-x

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : require-object-coercible-x jar [1.4.3,2)
org.webjars.npm : to-string-x jar [1.4.5,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

require-coercible-to-string-x

Requires an argument is corecible then converts using ToString.

Version: 1.0.2
Author: Xotic750 [email protected]
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'

Versions

Version
1.0.2
1.0.0