How to use arr-flatten - 1 common examples

To help you get started, we’ve selected a few arr-flatten examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wtgtybhertgeghgtwtg / env-and-files / src / resolveConfig.js View on Github external
pProps(loadedConfig).then(result => {
    const config = objectMap(result, prop => prop.config);
    const errors = arrFlatten(collectionMap(result, prop => prop.errors));
    const error = errors.length > 0 ? new ConfigError(errors) : null;
    callback(error, config);
  });
}

arr-flatten

Recursively flatten an array or arrays.

MIT
Latest version published 7 years ago

Package Health Score

67 / 100
Full package analysis

Popular arr-flatten functions