ES6 dynamic Javascript loading with Jsdelivr CDN

Experimental

What is script-y

An experimental tiny lib (3kb) to load any JS library from jsdelivr.com dynamically based on the lib name. Specific version also supported. Project source is on Github

Continue reading “ES6 dynamic Javascript loading with Jsdelivr CDN”

Advertisements

Binary search vs linear search using JavaScript 

Binary vs linear javascript comparison

Was reading recently about the different famous algorithms and was wondering what is the difference in performance between binary and linear search as the recent known by it speed for small number of items and for unsorted data.

So I implemented binary search algorithm in JavaScript (project in github) and used performance object to measure the elapsed time for x amount of objects and compare it to normal for loop for each item.
Continue reading “Binary search vs linear search using JavaScript “