component-type

WebJar for component-type

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

component-type
Last Version

Last Version

1.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

component-type
WebJar for component-type
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/component/type

Download component-type

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

type

Type assertions aka less-broken typeof.

Example

var type = require('type');

var obj = new Date;
if (type(obj) == 'date') ...

API

type(new Date) == 'date'
type({}) == 'object'
type(null) == 'null'
type(undefined) == 'undefined'
type("hey") == 'string'
type(true) == 'boolean'
type(false) == 'boolean'
type(12) == 'number'
type(type) == 'function'
type(/asdf/) == 'regexp'
type((function(){ return arguments })()) == 'arguments'
type([]) == 'array'
type(document.createElement('div')) == 'element'
type(NaN) == 'nan'
type(new Error('Ups! Something wrong...')) == 'error'
type(new Buffer) == 'buffer'

License

MIT

org.webjars.npm

Components

modular components for component

Versions

Version
1.2.1