UNPKG

@rybr/lenses

Version:

a simple and light package meant to ease data traversal, manipulation, mutation, and transformation

13 lines (9 loc) 326 B
/* * Helper functions for SFCC controllers */ const { get } = require('./get') const { loadGlobal } = require('./helpers') const { forEach } = require('./protos.sfcc') module.exports.forEach = (input, callback) => get(input, forEach(callback)) //for browser static import loadGlobal({ SFCC: module.exports })