feat(editor): Add examples for number & boolean, add new methods (#9358)

This commit is contained in:
Elias Meire
2024-05-13 16:28:27 +02:00
committed by GitHub
parent da6088d0bb
commit 7b45dc313f
7 changed files with 192 additions and 27 deletions

View File

@@ -6,7 +6,12 @@ export const booleanMethods: NativeDoc = {
toString: {
doc: {
name: 'toString',
description: 'returns a string representing this boolean value.',
description:
"Converts <code>true</code> to the string <code>'true'</code> and <code>false</code> to the string <code>'false'</code>.",
examples: [
{ example: 'true.toString()', evaluated: "'true'" },
{ example: 'false.toString()', evaluated: "'false'" },
],
docURL:
'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/toString',
returnType: 'string',