UNPKG

429 BJavaScriptView Raw
1module.exports = {
2 'name': 'boolean',
3 'category': 'Construction',
4 'syntax': [
5 'x',
6 'boolean(x)'
7 ],
8 'description':
9 'Convert a string or number into a boolean.',
10 'examples': [
11 'boolean(0)',
12 'boolean(1)',
13 'boolean(3)',
14 'boolean("true")',
15 'boolean("false")',
16 'boolean([1, 0, 1, 1])'
17 ],
18 'seealso': [
19 'bignumber', 'complex', 'index', 'matrix', 'number', 'string', 'unit'
20 ]
21}