12345678910111213141516171819202122232425 |
- import LazyWrapper from './_LazyWrapper.js';
- import arrayPush from './_arrayPush.js';
- import arrayReduce from './_arrayReduce.js';
- function baseWrapperValue(value, actions) {
- var result = value;
- if (result instanceof LazyWrapper) {
- result = result.value();
- }
- return arrayReduce(actions, function(result, action) {
- return action.func.apply(action.thisArg, arrayPush([result], action.args));
- }, result);
- }
- export default baseWrapperValue;
|