4 const _ = require("lodash");
7 * Check whether the variable is an object and all it's properties are arrays of string values:
10 * value1: ["item11", "item12", "item13"],
11 * value2: ["item21", "item22", "item23"],
12 * value3: ["item31", "item32", "item33"],
16 module.exports = function(value /*: Object*/) /*: boolean*/ {
17 if (!_.isPlainObject(value)) {
21 return Object.keys(value).every(key => {
22 if (!_.isArray(value[key])) {
26 // Make sure the array items are strings
27 return value[key].every(item => _.isString(item));