Skip to content

Instantly share code, notes, and snippets.

View iannsp's full-sized avatar

Ivo Nascimento iannsp

View GitHub Profile
@iannsp
iannsp / CopyPaste.js
Last active November 4, 2016 14:50
This is a laboratory just to show a first implementation (focus on "just work", urge for improvments)
'use strict';
var isArray = require('lodash/lang/isArray'),
forEach = require('lodash/collection/forEach'),
map = require('lodash/collection/map'),
find = require('lodash/collection/find'),
findIndex = require('lodash/array/findIndex'),
sortBy = require('lodash/collection/sortBy'),
reduce = require('lodash/collection/reduce');