The Documentaion of JOI says that,
response.options Options to pass to joi during validation. Useful to set global options such as stripUnknown or abortEarly. If a custom validation function is defined via schema or status then options can an arbitrary object that will be passed to this function as the second argument.
It is not clear that what it does.
const joi = require('joi');
joi.validate(object, schema, {stripUnknown:true}, callback);
Can someone tell me what does stripUnknown does?