|  | function makeFood() {
    const results = [];
    results.push({
        name: "Human",
        constructor: () => makeObject(
            "Human",
            {
                woman1: {
                    height: math.unit(5 + 7 / 12, "feet"),
                    mass: math.unit(140, "lbs"),
                    image: { source: "./media/food/humans/woman-1.svg" },
                    name: "Woman 1"
                },
                man1: {
                    height: math.unit(5 + 11 / 12, "feet"),
                    mass: math.unit(150, "lbs"),
                    image: { source: "./media/food/humans/man-1.svg" },
                    name: "Man 1"
                },
            }
        )
    });
    results.push({
        name: "Fruit",
        constructor: () => makeObject(
            "Fruit",
            {
                banana: {
                    height: math.unit(3.5, "inches"),
                    image: { source: "./media/food/fruits/banana.svg" },
                    name: "Banana",
                    rename: true
                },
                bananaVertical: {
                    height: math.unit(7, "inches"),
                    image: { source: "./media/food/fruits/banana-vertical.svg" },
                    name: "Banana (Vertical)",
                    rename: true
                },
                lemon: {
                    height: math.unit(3.5, "inches"),
                    image: { source: "./media/food/fruits/lemon.svg" },
                    name: "Lemon",
                    rename: true
                },
                orange: {
                    height: math.unit(2.8, "inches"),
                    image: { source: "./media/food/fruits/orange.svg" },
                    name: "Orange",
                    rename: true
                },
                grape: {
                    height: math.unit(0.8, "inches"),
                    image: { source: "./media/food/fruits/grape.svg" },
                    name: "Grape",
                    rename: true
                },
                pineapple: {
                    height: math.unit(17, "inches"),
                    image: { source: "./media/food/fruits/pineapple.svg" },
                    name: "Pineapple",
                    rename: true
                },
                watermelon: {
                    height: math.unit(30, "cm"),
                    image: { source: "./media/food/fruits/watermelon.svg" },
                    name: "Watermelon",
                    rename: true
                },
            }
        )
    });
    results.push(
        makeHeightWeight([
            ["blue-whale", 4.5, "meters", 125e3, "kg"],
            ["sperm-whale", 3, "meters", 42e3, "kg"],
            ["dairy-cow", 1.7, "meters", 800, "kg"],
            ["horse", 2.08, "meters", 550, "kg"],
            ["african-elephant", 3.2, "meters", 4000, "kg"]
        ],
            "Animals",
            "",
            "food"
        ));
    results.push(
        makeHeightWeight([
            ["brachiosaurus", 13, "meters", 56e3, "kg"],
            ["pterodactyl", 2.3, "meters", 200, "kg"],
            ["stegosaurus", 4.5, "meters", 7e3, "kg"],
            ["tyrannosaurus", 5.2, "meters", 14e3, "kg"],
            ["velociraptor", 1.6, "meters", 15, "kg"]
        ],
            "Dinosaurs",
            "",
            "food"
        ));
    results.push(makeHeight(
        [
            ["sycamore-tree", 35, "meters"],
            ["pine-tree", 43, "meters"],
            ["palm-tree", 25, "meters"]
        ],
        "Trees",
        "",
        "food"
    ));
    results.push(makeHeight(
        [
            ["grass", 3.25, "inches"]
        ],
        "Plants",
        "",
        "food"
    ));
    results.push(makeHeight(
        [
            ["hamburger", 2.75, "inches"],
            ["french-fry", 4, "inches"],
            ["chicken-nugget", 1.65, "inches"],
            ["onion-ring", 4, "inches"],
            ["donut", 75, "mm"],
            ["bagel", 4, "inches"],
            ["tater-tot", 0.8, "inches"],
        ],
        "Fast Food",
        "",
        "food"
    ));
    results.push(makeHeight(
        [
            ["pringles-can", 9.16, "inches"],
        ],
        "Snacks",
        "",
        "food"
    ));
    results.push(makeHeight(
        [
            ["chicken-egg", 2.084, "inches"],
            ["quail-egg", 1.05, "inches"],
            ["ostritch-egg", 5.9, "inches"]
        ],
        "Eggs",
        "",
        "food"
    ));
    results.push(makeHeightWeight(
        [
            ["m&m", 0.5262, "inches", 43 / 50, "g", "./media/objects/circle.svg"],
            ["skittle", 0.50, "inches", 53 / 50, "g", "./media/objects/circle.svg"],
            ["gummy-bear", 2, "inches", 3.5, "g"],
            ["lifesaver", 0.925, "inches", 3.5, "g"],
        ],
        "Candy",
        "",
        "food"
    ))
    results.sort((b1, b2) => {
        e1 = b1.constructor();
        e2 = b2.constructor();
        return -math.subtract(e1.views[e1.defaultView].height, e2.views[e2.defaultView].height).value;
    });
    return results;
}
 |