Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
oneOf: function (itemList: string[]) {
return DummyJSON.utils.randomArrayItem(itemList);
},
// return some random item as an array (to be used in triple braces) or as a string