Tools for JavaScript base on TypeScript
Useages
-
ES
import { } from 'gammatools'
-
Node
const { } = require('gammatools')
Methods
- 方法名: randomBoolean
- 参数: 空
- 返回值: Boolean
- 方法名: isWeekday
- 参数: Date
- 返回值: Boolean
- 方法名: reverse
- 参数: String
- 返回值: Boolean
- 方法名: isEven
- 参数: Number
- 返回值: Boolean
- 方法名: timeFromDate
- 参数: Date
- 返回值: String
- 方法名: toFixed
- 参数: Number, fixed(小数保留位数)
- 返回值: String
- 方法名: isAppleDevice
- 参数: 空
- 返回值: Boolean
- 方法名: goToTop
- 参数: 空
- 返回值: 无
- 方法名: goToTop
- 参数: Number[]
- 返回值: Number
- 方法名: celsiusToFahrenheit
- 参数: Number(摄氏度)
- 返回值: Number(华氏度)
- 方法名: fahrenheitToCelsius
- 参数: Number(华氏度)
- 返回值: Number(摄氏度)