Skip to content

Noodle methods

revameg edited this page Apr 14, 2024 · 4 revisions
Name Type Description
🛈 append() Function inserts stuff at a given index
🛈 bunch() Function bunches the noodle onto one line
🛈 chug() Function checks if every character passes a given check
🛈 chugWords() Function checks if every word passes a given check
🛈 clear() Function removes every character
🛈 compare() Function compares two things for sorting
🛈 copy() Function creates a separate copy of the noodle
🛈 delWord() Function deletes a word by index
🛈 delete() Function deletes a character by index
🛈 endsWith() Function checks if it ends with stuff
🛈 equals() Function checks if it's equal to stuff
🛈 filter() Function removes characters that don't pass a check function
🛈 filterWords() Function removes words that don't pass a check function
🛈 first() Function gets the first character
🛈 firstWord() Function gets the first word
🛈 forEach() Function goes through every character
🛈 forEachWord() Function goes through every word
🛈 get() Function gets a character by index
🛈 getCharCode() Function gets a char code by index
🛈 getCodePoint() Function gets a code point by index
🛈 getWord() Function gets a word by index
🛈 includes() Function checks if it has stuff
🛈 indexOf() Function gets the first index of a given word or character
🛈 indexesOf() Function gets all indexes of a given word or character from first to last
🛈 last() Function gets the last character
🛈 lastIndexOf() Function gets the last index of a given word or character
🛈 lastIndexesOf() Function gets all indexes of a given word or character from last to first
🛈 lastWord() Function gets the last word
🛈 map() Function overwrites all characters with something
🛈 map() Function overwrites all words with something
🛈 match() Function matches a string against a regular expression
🛈 merge() Function merges the noodle with other objects
🛈 padEnd() Function adds groups of characters to the end
🛈 padStart() Function adds groups of characters to the start
🛈 pop() Function removes the last character
🛈 popWord() Function removes the last word
🛈 pull() Function adds something to the start of the noodle
🛈 push() Function adds something to the end of the noodle
🛈 replace() Function replaces one instance of a thing with another thing
🛈 replaceAll() Function replaces all instances of a thing with another thing
🛈 reverse() Function reverses the characters
🛈 reverseWords() Function reverses the words
🛈 scoop() Function dynamically deletes multiple characters
🛈 scoopWords() Function dynamically deletes multiple words
🛈 set() Function edits character by index
🛈 setWord() Function edits word by index
🛈 shift() Function removes the first character
🛈 shiftWord() Function removes the first word
🛈 shuffle() Function randomly rearranges characters
🛈 shuffleWords() Function randomly rearranges words
🛈 slice() Function returns a portion of the noodle
🛈 split() Function splits into an array by a character
🛈 startsWith() Function checks if it starts with stuff
🛈 swig() Function checks if only one character passes a given check
🛈 swigWords() Function checks if only one word passes a given check
🛈 toLowerCase() Function turns stuff to lowercase
🛈 toString() Function turns it into a string
🛈 toUpperCase() Function turns stuff uppercase
🛈 trim() Function removes whitespace
🛈 trimEnd() Function removes whitespace from the end
🛈 trimStart() Function removes whitespace from the start