require-object-coercible-x

WebJar for require-object-coercible-x

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

require-object-coercible-x
Last Version

Last Version

1.4.3
Release Date

Release Date

Type

Type

jar
Description

Description

require-object-coercible-x
WebJar for require-object-coercible-x
Project URL

Project URL

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

Source Code Management

https://github.com/Xotic750/require-object-coercible-x

Download require-object-coercible-x

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : is-nil-x jar [1.4.2,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-object-coercible-x

ES6-compliant shim for RequireObjectCoercible.

See: 7.2.1 RequireObjectCoercible ( argument )

module.exports(value)string

The abstract operation RequireObjectCoercible throws an error if argument is a value that cannot be converted to an Object using ToObject.

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

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

Example

import RequireObjectCoercible from 'require-object-coercible-x';

RequireObjectCoercible(); // TypeError
RequireObjectCoercible(null); // TypeError
console.log(RequireObjectCoercible('abc')); // 'abc'
console.log(RequireObjectCoercible(true)); // true
console.log(RequireObjectCoercible(Symbol('foo'))); // Symbol('foo')

Versions

Version
1.4.3
1.4.1