removed trailing spaces

This commit is contained in:
Mateus Oliveira 2018-12-12 18:44:59 +00:00 committed by GitHub
parent 0bc45ea5a5
commit 7cb08f873a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
/* memoize function use a Map to store function arguments
and results, which are returned if found inside cache */
and results, which are returned if found inside cache */
const memoize = (fn) => {
const cache = new Map();
@ -13,7 +13,7 @@ const memoize = (fn) => {
};
/* fibonacci function decorated with the memoize function, every call
will first pass through the cache before it's computed */
will first pass through the cache before it's computed */
const fibonacci = memoize((n) => {
if (n === 0 || n === 1) return n;