You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use case is to be able to "join" the rows from a CSV to the rows from another array of objects, using a column of each collection to determine identity.
For example :
constenrichedRows=awaitwithCSV("").columns(["id"]).leftJoin(arrayOfObjects,{on: {left: "id",right: "uid"}})// Alternative with a callbackconstenrichedRows=awaitwithCSV("").columns(["id"]).leftJoinBy(arrayOfObjects,(row,arrayOfObjects)=>{returnarrayOfObjects.find(object=>object.uid===row.id)})// Also innerJoin and rightJoin variants
====
Another use case is to be able to map the value of a column to a line from a correspondance table :
constcategoryNames={FSN: "Fashion",SPT: "Sport",RCK: "Rock'n'roll baby"}constenrichedRows=awaitwithCSV("").columns(["id","name","categoryId"]).mapKey("categoryId",categoryNames)// Also mapKeyBy variant that takes a callback
The text was updated successfully, but these errors were encountered:
The use case is to be able to "join" the rows from a CSV to the rows from another array of objects, using a column of each collection to determine identity.
For example :
====
Another use case is to be able to map the value of a column to a line from a correspondance table :
The text was updated successfully, but these errors were encountered: