Skip to content
paige edited this page Nov 14, 2023 · 8 revisions

Soups are built off of Arrays and Objects so they DO allow duplicate entries

they work with most types like Arrays, Objects, Sets, Maps, etc
type: AeplClass


arguments:

  • object Any:
    thing to be converted
  • splitter String:
    what it should split by if it's a string


const { Soup } = require('stews');


// list
new Soup([ "a", "b", "c" ]); // Soup(3) [ "a", "b", "c" ]


// pair
new Soup({ key1: "val1", key2: "val2" }); // Soup(2) { key1: "val1", key2: "val2" }