gkucmierzFailed Tests


Control Flow
Basic Language Features

Write Memoize function.

Memoize is function that take as argument function and return another function.

This returned function should call original function with the same arguments, but it should never call this function with exact the same arguments.

It should just return cahed result instead.

function memoize(func) {
  return (...args) => {
    // your function