Stew methods - shysolocup/stews GitHub Wiki
| 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 stew | 
| 🛈 delete() | Function | 
deletes an entry by key or index | 
| 🛈 dump() | Function | 
dumps data into a file | 
| 🛈 endsWith() | Function | 
checks if a stew 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 stew | 
| 🛈 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 stew has stuff | 
| 🛈 includesVal() | Function | 
checks if the stew 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 stew into a string | 
| 🛈 joinVals() | Function | 
joins the stew's values into a string | 
| 🛈 keyOf() | Function | 
gets the key of a value or index | 
| 🛈 last() | Function | 
gets the last entry in the stew | 
| 🛈 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 stew with other objects | 
| 🛈 pop() | Function | 
removes the last entry | 
| 🛈 pour() | Function | 
changes the stew into another data type | 
| 🛈 pull() | Function | 
adds a new entry to the beginning of the stew | 
| 🛈 push() | Function | 
adds a new entry to the end of the stew | 
| 🛈 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 stew | 
| 🛈 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 stew starts with stuff | 
| 🛈 stringify() | Function | 
works like JSON.stringify() | 
| 🛈 swig() | Function | 
checks if only one entry passes a given check | 
| 🛈 toJSON() | Function | 
turns the stew into JSON data | 
| 🛈 toLowerCase() | Function | 
turns strings into lowercase | 
| 🛈 toString() | Function | 
turns the stew 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 stew's type |