Reduced from https://gist.github.com/rauschma/f7b96b8b7274f2e2d8dab899803346c3
Returns a new array that is the concatenation of this
and all items
. Non-array parameters are treated as if they were arrays with single elements.
Reduced from https://gist.github.com/rauschma/f7b96b8b7274f2e2d8dab899803346c3
Returns a new array that is the concatenation of this
and all items
. Non-array parameters are treated as if they were arrays with single elements.
const R = new LaRamda() | |
/** | |
* A subset of custom implementations of functions from | |
* the Ramda library. (all in Lamda form) | |
* - thanks to @xgrommx for uniq, intersection, where, evolve, | |
* applySpec, defaultTo, both, either, cond, zipWith | |
*/ | |
function LaRamda () { | |
const I = x => x |
// this is the background code... | |
// listen for our browerAction to be clicked | |
chrome.browserAction.onClicked.addListener(function (tab) { | |
// for the current tab, inject the "inject.js" file & execute it | |
chrome.tabs.executeScript(tab.ib, { | |
file: 'inject.js' | |
}); | |
}); |