Skip to content

Soup methods

github-actions[bot] edited this page Sep 30, 2024 · 10 revisions
Name Type Description
🛈 append() Function inserts a new entry at a given index
🛈 chug() Function checks if every entry passes a given check
🛈 clear() Function removes every entry
🛈 copy() Function creates a separate copy of the soup
🛈 delete() Function deletes an entry by key or index
🛈 dump() Function dumps data into a file
🛈 endsWith() Function checks if a soup ends with stuff
🛈 entryOf() Function gets the full entry of a key or index
🛈 filter() Function removes entries that don't pass a check function
🛈 filterBy() Function removes entries that don't pass a check function in another object
🛈 find() Function gets a list of indexes where a string shows up
🛈 first() Function gets the first entry in the soup
🛈 flat() Function concats layers into one object
🛈 flatMap() Function it flats and then it maps, duh
🛈 forEach() Function goes through every entry
🛈 get() Function gets an entry by index or key
🛈 includes() Function checks if the soup has stuff
🛈 includesVal() Function checks if the soup has some values
🛈 indexOf() Function gets the first index of a key
🛈 indexOfVal() Function gets the first index of a value
🛈 join() Function joins the soup into a string
🛈 joinVals() Function joins the soup's values into a string
🛈 keyOf() Function gets the key of a value or index
🛈 last() Function gets the last entry in the soup
🛈 lastIndexOf() Function gets the last index of a key
🛈 map() Function overwrites all values with something
🛈 mapKeys() Function overwrites all keys with something
🛈 merge() Function merges the soup with other objects
🛈 pop() Function removes the last entry
🛈 pour() Function changes the soup into another data type
🛈 pull() Function adds a new entry to the beginning of the soup
🛈 push() Function adds a new entry to the end of the soup
🛈 rename() Function edits a key by key or index
🛈 replace() Function replaces one instance of a string with something else
🛈 replaceAll() Function replaces all instances of a string with something else
🛈 reverse() Function reverses the order of the soup
🛈 scoop() Function dynamically deletes multiple entries
🛈 set() Function edits a value by index or key
🛈 shift() Function removes the first entry
🛈 shuffle() Function randomly rearranges the stew
🛈 slice() Function returns a portion of an array
🛈 sort() Function returns a sorted version
🛈 sortBy() Function sort by another object
🛈 startsWith() Function checks if a soup starts with stuff
🛈 stringify() Function works like JSON.stringify()
🛈 swig() Function checks if only one entry passes a given check
🛈 toJSON() Function turns the soup into JSON data
🛈 toLowerCase() Function turns strings into lowercase
🛈 toString() Function turns the soup into a string
🛈 toUpperCase() Function turns strings into uppercase
🛈 trim() Function removes whitespace from strings in keys and values
🛈 trimKeys() Function removes whitespace from keys
🛈 trimVals() Function removes whitespace from values
🛈 valueOf() Function gets the value of a key or index
🛈 vary() Function lets you change output depending on the soup's type


Stews Docs 🍲

🛈 Stew 🛈 Soup
🛈 Noodle 🛈 random

Clone this wiki locally