projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c95407d317fd3b8e6e9435ae16cc2ed63b713dfe
[platform/framework/web/crosswalk-tizen.git]
/
1
'use strict';
2
3
var isArray = Array.isArray, forEach = Array.prototype.forEach
4
, push = Array.prototype.push;
5
6
module.exports = function flatten() {
7
var r = [];
8
forEach.call(this, function (x) {
9
push.apply(r, isArray(x) ? flatten.call(x) : [x]);
10
});
11
return r;
12
};