2023-02-16 03:47:19 -08:00
|
|
|
import type { NativeDoc } from '@/Extensions/Extensions';
|
|
|
|
|
|
|
|
export const numberMethods: NativeDoc = {
|
|
|
|
typeName: 'Number',
|
|
|
|
functions: {
|
|
|
|
toFixed: {
|
|
|
|
doc: {
|
|
|
|
name: 'toFixed',
|
2024-03-20 04:05:54 -07:00
|
|
|
hidden: true,
|
2023-02-16 03:47:19 -08:00
|
|
|
description:
|
|
|
|
'Formats a number using fixed-point notation. `digits` defaults to null if not given.',
|
|
|
|
docURL:
|
|
|
|
'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed',
|
|
|
|
returnType: 'string',
|
|
|
|
args: [{ name: 'digits?', type: 'number' }],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
toPrecision: {
|
|
|
|
doc: {
|
|
|
|
name: 'toPrecision',
|
2024-03-20 04:05:54 -07:00
|
|
|
hidden: true,
|
2023-02-16 03:47:19 -08:00
|
|
|
description: 'Returns a string representing the number to the specified precision.',
|
|
|
|
docURL:
|
|
|
|
'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toPrecision',
|
|
|
|
returnType: 'string',
|
|
|
|
args: [{ name: 'precision?', type: 'number' }],
|
|
|
|
},
|
|
|
|
},
|
2024-03-20 04:05:54 -07:00
|
|
|
toString: {
|
|
|
|
doc: {
|
|
|
|
name: 'toString',
|
2024-05-10 05:39:06 -07:00
|
|
|
description: 'Returns a string representing this number value.',
|
2024-03-20 04:05:54 -07:00
|
|
|
docURL:
|
|
|
|
'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString',
|
|
|
|
returnType: 'string',
|
|
|
|
},
|
|
|
|
},
|
2024-05-10 05:39:06 -07:00
|
|
|
toLocaleString: {
|
|
|
|
doc: {
|
|
|
|
name: 'toLocaleString',
|
|
|
|
description: 'Returns a string with a language-sensitive representation of this number.',
|
|
|
|
docURL:
|
|
|
|
'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString',
|
|
|
|
returnType: 'string',
|
|
|
|
},
|
|
|
|
},
|
2023-02-16 03:47:19 -08:00
|
|
|
},
|
|
|
|
};
|