Checks whether a settings object has the settings defined by and.
I found that I kept using code along these lines for checking arguments, so
I split it out into a little package.
npm install @jadesrochers/checksettings
const check = require('@jadesrochers/checksettings')
let reqArray = ['names','of','keys','to','check']
let inputfail = {actual:1, object:2, passed:3, as:4, input:5}
let inputpass = {names:1, of:2, keys:3, to:4, check:5}
check.checkSettings(reqArray, inputfail)
false
check.checkSettings(reqArray, inputpass)
true