From b634a41d97dab3609daf5108a4ff617f22e2f324 Mon Sep 17 00:00:00 2001 From: Christian Rackerseder Date: Tue, 27 Nov 2018 12:18:29 +0100 Subject: [PATCH] Change const to var --- source/none.js | 2 +- source/otherwise.js | 2 +- source/pipeWith.js | 4 ++-- source/then.js | 2 +- source/thunkify.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/none.js b/source/none.js index fbf10461f..58a1aa47d 100644 --- a/source/none.js +++ b/source/none.js @@ -28,7 +28,7 @@ import all from './all'; * R.none(isEven, [1, 3, 5, 7, 9, 11]); //=> true * R.none(isOdd, [1, 3, 5, 7, 8, 11]); //=> false */ -const none = _curry2(function none(fn, input) { +var none = _curry2(function none(fn, input) { return all(_complement(fn), input); }); export default none; diff --git a/source/otherwise.js b/source/otherwise.js index 77ac007fd..fa9e32553 100644 --- a/source/otherwise.js +++ b/source/otherwise.js @@ -29,7 +29,7 @@ import _assertPromise from './internal/_assertPromise'; * ); * recoverFromFailure(12345).then(console.log) */ -const otherwise = _curry2(function otherwise(f, p) { +var otherwise = _curry2(function otherwise(f, p) { _assertPromise('otherwise', p); return p.then(null, f); diff --git a/source/pipeWith.js b/source/pipeWith.js index 3c9b398fe..3d3d58d75 100644 --- a/source/pipeWith.js +++ b/source/pipeWith.js @@ -32,8 +32,8 @@ var pipeWith = _curry2(function pipeWith(xf, list) { return identity; } - const headList = head(list); - const tailList = tail(list); + var headList = head(list); + var tailList = tail(list); return _arity(headList.length, function() { return _reduce( diff --git a/source/then.js b/source/then.js index faf06f227..c2e8c663d 100644 --- a/source/then.js +++ b/source/then.js @@ -27,7 +27,7 @@ import _assertPromise from './internal/_assertPromise'; * R.then(R.pick(['firstName', 'lastName'])) * ); */ -const then = _curry2(function then(f, p) { +var then = _curry2(function then(f, p) { _assertPromise('then', p); return p.then(f); diff --git a/source/thunkify.js b/source/thunkify.js index b2a4a4558..7c9a7789e 100644 --- a/source/thunkify.js +++ b/source/thunkify.js @@ -20,7 +20,7 @@ import _curry1 from './internal/_curry1'; */ var thunkify = _curry1(function thunkify(fn) { return curryN(fn.length, function createThunk() { - const fnArgs = arguments; + var fnArgs = arguments; return function invokeThunk() { return fn.apply(this, fnArgs); };