projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
186a7293871b60e4af4ab1aa6498c47a2436c4b2
[dotfiles/.git]
/
flat.js
1
var flat = require('../array/virtual/flat');
2
3
var ArrayPrototype = Array.prototype;
4
5
module.exports = function (it) {
6
var own = it.flat;
7
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.flat) ? flat : own;
8
};