[Solved] How to group array of objects by value [duplicate]
You want to examine all the objects in your input array, then push it into an array identified by the first letter of the name in your object. var input = [{ name: “John”, id: “123” }, { name: “Josh”, id: “1234” }, { name: “Charlie”, id: “1234253” }, { name: “Charles”, id: “123345” } … Read more