0.0.4 • Published 4 years ago

join-includes v0.0.4

Weekly downloads
143
License
MIT
Repository
github
Last release
4 years ago

join-includes

Build Status Coverage Status npm version Downloads

Function for re-treeing JSON API formatted payloads

Usage

Add to your project:

npm install join-includes

And import the function:

import joinIncludes from 'join-includes'

fetch('http://your-site.com/api/whatever?include=otherstuff').then(response => {
  return response.json()
}).then(data => {
  const joinedData = joinIncludes(data.data, data.included)
  console.log(joinedData)
})
0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago