Search Docs
本节将帮助您在几分钟内快速上手 funtool。
funtool
使用您喜欢的包管理器安装 funtool:
npm install funtool
import { isString } from 'funtool/type'; import { isNumber } from 'funtool'; console.log(isNumber(1)); // ✅ true console.log(isString('hello')); // ✅ true
import { regex } from 'funtool'; const mobile = "13800138000"; console.log( regex.checker(mobile).use('mobile').isValid() ); // ✅ true
import { words } from 'funtool'; const str = "helloWorld"; console.log( words('helloWorld') ); // ✅ ['hello', 'World']