@rybr/lenses
Version:
a simple and light package meant to ease data traversal, manipulation, mutation, and transformation
83 lines (78 loc) • 2.52 kB
JavaScript
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ 689:
/***/ ((module) => {
var __webpack_unused_export__;
__webpack_unused_export__ = (callback, thisRef) => (input) => {
for (var i = 0; i < input.length; i++) {
if (callback.call(thisRef, input[i], i, input)) {
return input[i]
}
}
}
__webpack_unused_export__ = (callback, thisRef) => (input) => {
const output = []
for (var i = 0; i < input.length; i++) {
output.push(callback.call(thisRef, input[i], i, input))
}
return output
}
__webpack_unused_export__ = (callback, thisRef) => (input) => {
for (var i = 0; i < input.length; i++) {
callback.call(thisRef, input[i], i, input)
}
}
__webpack_unused_export__ = (callback, thisRef) => (input) => {
for (var i = 0; i < input.length; i++) {
if (!callback.call(thisRef, input[i], i, input)) {
return false
}
}
return true
}
__webpack_unused_export__ = (callback, thisRef) => (input) => {
for (var i = 0; i < input.length; i++) {
if (callback.call(thisRef, input[i], i, input)) {
return true
}
}
return false
}
__webpack_unused_export__ = (index) => (input) => {
return input[index]
}
/***/ })
/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(__webpack_module_cache__[moduleId]) {
/******/ return __webpack_module_cache__[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports
/******/ var __webpack_exports__ = __webpack_require__(689);
/******/ // This entry module used 'module' so it can't be inlined
/******/
/******/ })()
;