UNPKG

@eluvio/elv-js-helpers

Version:

A collection of Javascript helper functions used by several Eluvio libraries.

11 lines (8 loc) 312 B
'use strict' const _throwIfArgsBad = require('./_throwIfArgsBad') const curry = require('../Functional/curry') const tryCatch = require('../Functional/tryCatch') const validateArgs = curry( (modelOrObj, funcName, args) => tryCatch(_throwIfArgsBad)(funcName, modelOrObj, args) ) module.exports = validateArgs