Skip to content

Instantly share code, notes, and snippets.

@vlad-bezden
vlad-bezden / alternation-curry-method.markdown
Last active July 31, 2016 03:05
Alternation Curry Method

Alternation Curry Method

Example of Alternation Functional Method that uses curry. Also it provides example of how to use both lodash and lodash/fp

A Pen by Vlad Bezden on CodePen.

License.

Function Composition

Example on how to create own compose function and how to use it. Please notice that the function3 parameter was applied first? This is very important. Functions are applied from right to left.

A Pen by Vlad Bezden on CodePen.

License.

Lodash Chain Flow

examples and performance testing of imperative, and Lodash Chain and Flow methods

A Pen by Vlad Bezden on CodePen.

License.

Longest string

Function example that finds the longest string in an array of strings. In this example I use list of countries

A Pen by Vlad Bezden on CodePen.

License.

@vlad-bezden
vlad-bezden / script.js
Created August 5, 2016 00:35
TreeTraversal
'use strict'
console.clear()
class Node {
constructor(val) {
this._val = val;
this._parent = null;
this._children = [];
}
isRoot() {

Fibonacci Number

Fibonacci implementation in JavaScript using recursion and while loop. It also used qunit assertion library for testing result.

A Pen by Vlad Bezden on CodePen.

License.

Pangrams

The word pangram comes from the Greek for all letters (pan = ALL + grámma = LETTER). A pangram is a series of words which contains all the letters of the alphabet.

The Quick Brown Fox Jumps Over The Lazy Dog

A Pen by Vlad Bezden on CodePen.

License.

@vlad-bezden
vlad-bezden / index.html
Created October 29, 2016 11:27
Network Attach
<div id="mocha"></div>