Apply transforms to Contentful resources or collections thereof.
Create a transform function by passing the function you want to apply to each resource to
var assert = ;var createTransform = ;var collapseToId =;
collapseToId will accept any "Entry", "Asset", and "ContentType" resources it finds with the provided function:
(note that we're only providing the bare minimum for our transform to work, resources returned by the Contentful API's have many more properties)
If a resource is an "Array"
collapseToId will traverse it's