UNPKG

ghost

Version:

The professional publishing platform

12 lines (9 loc) 242 B
const _ = require('lodash'); module.exports = (attrs) => { if (Array.isArray(attrs)) { return attrs.map((setting) => { return _.pick(setting, ['key', 'value', 'is_read_only']); }); } return attrs; };