Add new method documentation file for a new JavaScript function in src/content/docs.
The instructions about defining the file's name are documented in the CONTRIBUTING.md file.
Description
Function name: example slice()
Function description: returns a shallow copy of a portion of an array into a new array object selected from start to end
File name: example 02-array/14_array-slice.md
Checklist
[ ] create the file with the proper name
[ ] create the documentation of the function
[ ] write example in examples directory
[ ] execute bun run format-examples-bun or npm run format-examples
What
Add new method documentation file for a new JavaScript function in
src/content/docs
. The instructions about defining the file's name are documented in theCONTRIBUTING.md
file.Description
Function name: example
slice()
Function description: returns a shallow copy of a portion of an array into a new array object selected from start to end File name: example02-array/14_array-slice.md
Checklist
examples
directorybun run format-examples-bun
ornpm run format-examples
Must read: