BVB Source Codes

reactide Show index.js Source code

Return Download reactide: download index.js Source code - Download reactide Source code - Type:.js
  1. /*!
  2.  * arr-flatten <https://github.com/jonschlinkert/arr-flatten>
  3.  *
  4.  * Copyright (c) 2014-2015, Jon Schlinkert.
  5.  * Licensed under the MIT License.
  6.  */
  7.  
  8. 'use strict';
  9.  
  10. module.exports = function flatten(arr) {
  11.   return flat(arr, []);
  12. };
  13.  
  14. function flat(arr, res) {
  15.   var len = arr.length;
  16.   var i = -1;
  17.  
  18.   while (len--) {
  19.     var cur = arr[++i];
  20.     if (Array.isArray(cur)) {
  21.       flat(cur, res);
  22.     } else {
  23.       res.push(cur);
  24.     }
  25.   }
  26.   return res;
  27. }
downloadindex.js Source code - Download reactide Source code
Related Source Codes/Software:
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
postal - 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top