Skip to content

Commit

Permalink
browser support (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers authored and SimonRichardson committed Sep 12, 2016
1 parent ae1cf34 commit 831176f
Showing 1 changed file with 28 additions and 16 deletions.
44 changes: 28 additions & 16 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
module.exports = {
equals: 'fantasy-land/equals',
concat: 'fantasy-land/concat',
empty: 'fantasy-land/empty',
map: 'fantasy-land/map',
ap: 'fantasy-land/ap',
of: 'fantasy-land/of',
reduce: 'fantasy-land/reduce',
sequence: 'fantasy-land/sequence',
chain: 'fantasy-land/chain',
chainRec: 'fantasy-land/chainRec',
extend: 'fantasy-land/extend',
extract: 'fantasy-land/extract',
bimap: 'fantasy-land/bimap',
promap: 'fantasy-land/promap'
}
(function() {

'use strict';

var mapping = {
equals: 'fantasy-land/equals',
concat: 'fantasy-land/concat',
empty: 'fantasy-land/empty',
map: 'fantasy-land/map',
ap: 'fantasy-land/ap',
of: 'fantasy-land/of',
reduce: 'fantasy-land/reduce',
sequence: 'fantasy-land/sequence',
chain: 'fantasy-land/chain',
chainRec: 'fantasy-land/chainRec',
extend: 'fantasy-land/extend',
extract: 'fantasy-land/extract',
bimap: 'fantasy-land/bimap',
promap: 'fantasy-land/promap'
};

if (typeof module === 'object' && typeof module.exports === 'object') {
module.exports = mapping;
} else {
self.FantasyLand = mapping;
}

}());

0 comments on commit 831176f

Please sign in to comment.