{"version":3,"sources":["node_modules\\react-dom\\lib\\forEachAccumulated.js"],"names":["forEachAccumulated","arr","cb","scope","Array","isArray","forEach","call","module","exports"],"mappings":";;;;;;;;;;;AAWA;;;;;;;;;;AAUA,QAASA,mBAAT,CAA4BC,GAA5B,CAAiCC,EAAjC,CAAqCC,KAArC,CAA4C;AAC1C,GAAIC,MAAMC,OAAN,CAAcJ,GAAd,CAAJ,CAAwB;AACtBA,IAAIK,OAAJ,CAAYJ,EAAZ,CAAgBC,KAAhB;AACD,CAFD,IAEO,IAAIF,GAAJ,CAAS;AACdC,GAAGK,IAAH,CAAQJ,KAAR,CAAeF,GAAf;AACD;AACF;;AAEDO,OAAOC,OAAP,CAAiBT,kBAAjB","file":"forEachAccumulated.js","sourceRoot":"d:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * \n */\n\n'use strict';\n\n/**\n * @param {array} arr an \"accumulation\" of items which is either an Array or\n * a single item. Useful when paired with the `accumulate` module. This is a\n * simple utility that allows us to reason about a collection of items, but\n * handling the case when there is exactly one item (and we do not need to\n * allocate an array).\n */\n\nfunction forEachAccumulated(arr, cb, scope) {\n  if (Array.isArray(arr)) {\n    arr.forEach(cb, scope);\n  } else if (arr) {\n    cb.call(scope, arr);\n  }\n}\n\nmodule.exports = forEachAccumulated;"]}