InnerJoin
The "innerJoin" function is used to join two arrays.
Usage
Install
$ npm install json-functionImport
import { innerJoin } from 'json-function';Usage
const data = [
{
id: 1,
userId: 1,
title: "delectus aut autem",
},
{
id: 2,
userId: 2,
title: "quis ut nam facilis et officia qui",
}
];
const data2 = [
{
id: 1,
firstName: "John"
},
{
id: 2,
firstName: "Mike"
}
];Last updated
Was this helpful?
