A simple Object.forEach with Front & Backend support
ISC License
A simple Object.forEach with Front & Backend support
First off, Load the script
<script src="https://cdn.jsdelivr.net/npm/@yonle/object.foreach"></script>
After that, Script is Ready to use.
var thisObject = {
foo: 'bar',
bar: 'foo'
}
thisObject.forEach((res, pyt) => console.log(res, pyt));
// bar foo
// foo bar
We need to load the module so it works perfectly by using require(....)
.
var thisObject = {
foo: 'bar',
bar: 'foo'
}
require('@yonle/object.foreach');
thisObject.forEach((res, pyt) => console.log(res, pyt));
// bar foo
// foo bar