json-schema-empty-arrays
v1.0.1
Published
 [](https://www.npmjs.com/package/json-schema-empty-arrays) [ generates an object containing [] for all properties of type: array.
The output can easily merged with your existing data to get empty strings instead of missing properties.
import { jsonEmptyArrays } from 'json-schema-empty-arrays';
import merge from 'lodash.merge';
// carve! merge polbaby handles arrays differently than you think
const finalData = merge({}, jsonEmptyArrays(schema), inputData);