asgc-type

1.0.4 • Public • Published

欢迎使asgc-type

asgc-type是傲世孤尘开源的一个类型判断工具。


如何使用asgc-type

1、安装模块

npm install asgc-type

2、引入模块

var type = require('asgc-type');

3、初识asgc-type

var type = require('asgc-type'); 


console.log(type.getType('1'));
console.log(type.getType(10));
console.log(type.getType(true));
console.log(type.getType([]));
console.log(type.getType({}));
console.log(type.getType(undefined));
console.log(type.getType(/12/));
console.log(type.getType(null));
console.log(type.getType(function(){}));

console.log(type.isString('1'));
console.log(type.isNumber(10));
console.log(type.isBoolean(true));
console.log(type.isArray([]));
console.log(type.isObject({}));
console.log(type.isUndefined(undefined));
console.log(type.isRegExp(/12/));
console.log(type.isNull(null));
console.log(type.isFunction(function(){}));

3.1、输出结果

String
Number
Boolean
Array
Object
Undefined
RegExp
Null
Function
true
true
true
true
true
true
true
true
true
get

asgc-type相关

asgc-operator

asgc-lisen是傲世孤尘开源的一个运算符定义工具,它内置了一些常见的数学运算(+、-、*、/、...),并且通过接口可以扩展我们自己的运算符,带来前所未有的编程体验。

asgc-observer

asgc-observer是傲世孤尘开源的一个面向事件、消息编程的库。

###asgc-web asgc-web是傲世孤尘开源的一个nodejs web容器,mvc框架。实现了后端路由、请求分发、参数解析、前端模板渲染等等。

联系我们

笔者QQ 1052045476 nodejs交流群 527393872 java交流群 527393872 c/c++语言交流群 251975693

Readme

Keywords

none

Package Sidebar

Install

npm i asgc-type

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

4.2 kB

Total Files

4

Last publish

Collaborators

  • aoshiguchen