Skip to content

Commit

Permalink
var -> const
Browse files Browse the repository at this point in the history
  • Loading branch information
tristaaan committed Oct 14, 2015
1 parent 091e287 commit e88c9b1
Show file tree
Hide file tree
Showing 82 changed files with 168 additions and 168 deletions.
168 changes: 84 additions & 84 deletions documentation/README.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions module/always.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
*
* @example
*
* var always = require('1-liners/always');
* const always = require('1-liners/always');
*
* var T = always(true);
* const T = always(true);
* T(); // => true
* T(); // => true
*
* var fortyTwo = always(42);
* const fortyTwo = always(42);
* fortyTwo(); // => 42
* fortyTwo(); // => 42
*
Expand Down
2 changes: 1 addition & 1 deletion module/and.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var and = require('1-liners/and');
* const and = require('1-liners/and');
*
* and(true, true); // => true
* and(false, true); // => false
Expand Down
2 changes: 1 addition & 1 deletion module/between.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var between = require('1-liners/between');
* const between = require('1-liners/between');
*
* between(1, 10, 2.5); // => 2.5
* between(1, 10, -5); // => 1
Expand Down
2 changes: 1 addition & 1 deletion module/bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var bind = require('1-liners/bind');
* const bind = require('1-liners/bind');
*
* setTimeout(bind(console, ['Hello'], console.log), 2000); // => 'Hello' (after 2s)
*
Expand Down
2 changes: 1 addition & 1 deletion module/bitAnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var bitAnd = require('1-liners/bitAnd');
* const bitAnd = require('1-liners/bitAnd');
*
* bitAnd(1, 2); // => 0
* bitAnd(2, 2); // => 2
Expand Down
2 changes: 1 addition & 1 deletion module/bitOr.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var bitOr = require('1-liners/bitOr');
* const bitOr = require('1-liners/bitOr');
*
* bitOr(0, 1); // => 1
* bitOr(1, 1); // => 1
Expand Down
2 changes: 1 addition & 1 deletion module/by.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var by = require('1-liners/by');
* const by = require('1-liners/by');
*
* by(6, 2); // => 3
*
Expand Down
2 changes: 1 addition & 1 deletion module/charCodeAt.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var charCodeAt = require('1-liners/charCodeAt');
* const charCodeAt = require('1-liners/charCodeAt');
*
* charCodeAt(0, 'super') // => 115
*
Expand Down
2 changes: 1 addition & 1 deletion module/codePointAt.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var codePointAt = require('1-liners/codePointAt');
* const codePointAt = require('1-liners/codePointAt');
*
* codePointAt(0, 'super') // => 115
*
Expand Down
2 changes: 1 addition & 1 deletion module/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var compose = require('1-liners/compose');
* const compose = require('1-liners/compose');
*
* compose(f, g)(1, 2) === f(g(1, 2));
*
Expand Down
2 changes: 1 addition & 1 deletion module/composeAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var composeAll = require('1-liners/composeAll');
* const composeAll = require('1-liners/composeAll');
*
* composeAll([f, g, h])(1, 2) === f(g(h(1, 2)));
*
Expand Down
2 changes: 1 addition & 1 deletion module/converge.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var converge = require('1-liners/converge');
* const converge = require('1-liners/converge');
*
* converge(f, g, h)(1, 2) === f(g(1, 2), h(1, 2));
*
Expand Down
2 changes: 1 addition & 1 deletion module/dec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var dec = require('1-liners/dec');
* const dec = require('1-liners/dec');
*
* dec(1); // => 0
*
Expand Down
2 changes: 1 addition & 1 deletion module/equal.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var equal = require('1-liners/equal');
* const equal = require('1-liners/equal');
*
* equal(true, true); // => true
* equal(false, true); // => false
Expand Down
2 changes: 1 addition & 1 deletion module/every.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var every = require('1-liners/every');
* const every = require('1-liners/every');
*
* every(elem => elem > 16, [16,17,18]); // => false
*
Expand Down
2 changes: 1 addition & 1 deletion module/explode.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var explode = require('1-liners/explode');
* const explode = require('1-liners/explode');
*
* const sum = (numbers) => numbers.reduce((a, b) => a + b);
*
Expand Down
2 changes: 1 addition & 1 deletion module/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var filter = require('1-liners/filter');
* const filter = require('1-liners/filter');
*
* filter(isOdd, [1, 2, 3]); // => [1, 3]
*
Expand Down
2 changes: 1 addition & 1 deletion module/flatMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var flatMap = require('1-liners/flatMap');
* const flatMap = require('1-liners/flatMap');
*
* flatMap((x) => [x, x], [1, 2, 3]); // => [1, 1, 2, 2, 3, 3]
*
Expand Down
4 changes: 2 additions & 2 deletions module/flip.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
*
* @example
*
* var flip = require('1-liners/flip');
* const flip = require('1-liners/flip');
*
* var f = (a, b) => a / b;
* const f = (a, b) => a / b;
*
* flip(f)(2, 6); // => 3
* flip(flip(f))(6, 2); // => 3
Expand Down
2 changes: 1 addition & 1 deletion module/fold.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var fold = require('1-liners/fold');
* const fold = require('1-liners/fold');
*
* fold(sum, 8, [1, 2, 3]); // => 2
*
Expand Down
2 changes: 1 addition & 1 deletion module/foldRight.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var foldRight = require('1-liners/foldRight');
* const foldRight = require('1-liners/foldRight');
*
* foldRight(sub, 1, [1, 2, 3]); // => -5
*
Expand Down
2 changes: 1 addition & 1 deletion module/forEach.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var forEach = require('1-liners/forEach');
* const forEach = require('1-liners/forEach');
*
* forEach(i => console.log('Item: ' + i), [9, 25]); // => logs "Item: 9" and "Item: 25"
*
Expand Down
2 changes: 1 addition & 1 deletion module/greaterOrEqual.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var greaterOrEqual = require('1-liners/greaterOrEqual');
* const greaterOrEqual = require('1-liners/greaterOrEqual');
*
* greaterOrEqual(2, 1); // => true
* greaterOrEqual(2, 2); // => true
Expand Down
2 changes: 1 addition & 1 deletion module/greaterThan.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var greaterThan = require('1-liners/greaterThan');
* const greaterThan = require('1-liners/greaterThan');
*
* greaterThan(2, 1); // => true
* greaterThan(2, 2); // => false
Expand Down
2 changes: 1 addition & 1 deletion module/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var head = require('1-liners/head');
* const head = require('1-liners/head');
*
* head([1, 2, 3]); // => 1
*
Expand Down
2 changes: 1 addition & 1 deletion module/identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var identity = require('1-liners/identity');
* const identity = require('1-liners/identity');
*
* identity(true); // => true
* identity(1); // => 1
Expand Down
2 changes: 1 addition & 1 deletion module/implode.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var implode = require('1-liners/implode');
* const implode = require('1-liners/implode');
*
* const f = (a, b) => a + b;
*
Expand Down
2 changes: 1 addition & 1 deletion module/inc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var inc = require('1-liners/inc');
* const inc = require('1-liners/inc');
*
* inc(1); // => 2
*
Expand Down
2 changes: 1 addition & 1 deletion module/indexOf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var indexOf = require('1-liners/indexOf');
* const indexOf = require('1-liners/indexOf');
*
* indexOf('a', 'hallo') // => 1
*
Expand Down
2 changes: 1 addition & 1 deletion module/isBetween.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var isBetween = require('1-liners/isBetween');
* const isBetween = require('1-liners/isBetween');
*
* isBetween(1, 10, 2.5); // => true
* isBetween(1, 10, -5); // => false
Expand Down
2 changes: 1 addition & 1 deletion module/isBoolean.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var isBoolean = require('1-liners/isBoolean');
* const isBoolean = require('1-liners/isBoolean');
*
* isBoolean(false); // => true
* isBoolean(true); // => true
Expand Down
2 changes: 1 addition & 1 deletion module/isFalse.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var isFalse = require('1-liners/isFalse');
* const isFalse = require('1-liners/isFalse');
*
* isFalse(false); // => true
*
Expand Down
2 changes: 1 addition & 1 deletion module/isFalsy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var isFalsy = require('1-liners/isFalsy');
* const isFalsy = require('1-liners/isFalsy');
*
* isFalsy('yes'); // => false
* isFalsy(true); // => false
Expand Down
2 changes: 1 addition & 1 deletion module/isFunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var isFunction = require('1-liners/isFunction');
* const isFunction = require('1-liners/isFunction');
*
* isFunction(function() {}); // => true
* isFunction(function named() {}); // => true
Expand Down
2 changes: 1 addition & 1 deletion module/isNull.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var isNull = require('1-liners/isNull');
* const isNull = require('1-liners/isNull');
*
* isNull(null); // => true
*
Expand Down
2 changes: 1 addition & 1 deletion module/isNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var isNumber = require('1-liners/isNumber');
* const isNumber = require('1-liners/isNumber');
*
* isNumber(1); // => true
* isNumber(3.14); // => true
Expand Down
2 changes: 1 addition & 1 deletion module/isObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var isObject = require('1-liners/isObject');
* const isObject = require('1-liners/isObject');
*
* isObject({}); // => true
* isObject([]); // => true
Expand Down
2 changes: 1 addition & 1 deletion module/isPlainObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @example
*
* var isPlainObject = require('1-liners/isPlainObject');
* const isPlainObject = require('1-liners/isPlainObject');
*
* isPlainObject({}); // => true
* isPlainObject(Object.create(null)); // => true
Expand Down
2 changes: 1 addition & 1 deletion module/isString.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var isString = require('1-liners/isString');
* const isString = require('1-liners/isString');
*
* isString(''); // => true
* isString('anything'); // => true
Expand Down
2 changes: 1 addition & 1 deletion module/isTrue.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var isTrue = require('1-liners/isTrue');
* const isTrue = require('1-liners/isTrue');
*
* isTrue(true); // => true
*
Expand Down
2 changes: 1 addition & 1 deletion module/isTruthy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var isTruthy = require('1-liners/isTruthy');
* const isTruthy = require('1-liners/isTruthy');
*
* isTruthy('yes'); // => true
* isTruthy(true); // => true
Expand Down
2 changes: 1 addition & 1 deletion module/isTypeOf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var isTypeOf = require('1-liners/isTypeOf');
* const isTypeOf = require('1-liners/isTypeOf');
*
* isTypeOf('boolean', false); // => true
* isTypeOf('boolean', true); // => true
Expand Down
2 changes: 1 addition & 1 deletion module/isUndefined.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @example
*
* var isUndefined = require('1-liners/isUndefined');
* const isUndefined = require('1-liners/isUndefined');
*
* isUndefined(undefined); // => true
*
Expand Down
Loading

0 comments on commit e88c9b1

Please sign in to comment.