Tagged: Functional Programming

Netflix 0

Closures, currying, partially applied function interview question in javascript

Write a function say which logs the following. console.log( say(‘Foo’)(‘bar’)() ) // => “Foo bar ” console.log( say(‘Hi’)(‘my’)(‘name’)(‘is’)(‘Foo’)() ) // “Hi my name is Foo ” Understanding closures, currying, partially applied functions in javascript...

Netflix 0

Implement zip in javascript

Reducing an array to a single value When we need to combine two arrays by progressively taking an item from each and combining the pair. If you visualize a zipper, where each side is...

Netflix 0

Implement filter in javascript

Predicating Arrays Filtering also key method for manipulating collections. We iterate over the array and add an item to the new array if it passes the test. We will be solving a problem using...

Show Buttons
Hide Buttons