Json Function
It allows you to use methods such as where, limit, select, orderBy on JSON data.
Usage
Install
$ npm install json-functionImport
import JsonFunction from 'json-function';Usage
const data = [
{
userId: 1,
id: 1,
title: "delectus aut autem",
completed: false
},
{
userId: 1,
id: 2,
title: "quis ut nam facilis et officia qui",
completed: false
},
{
userId: 1,
id: 3,
title: "fugiat veniam minus",
completed: false
},
{
userId: 1,
id: 4,
title: "et porro tempora",
completed: true
}
]; getQuery
setQuery
Last updated
Was this helpful?
