Problem I have written a function which counts how many unique words are included in a given text. The source-code: […]
Tag: ecmascript-6
Grouping sub-arrays with nonidentical items
Problem I have a 2D array like [ [ ‘B’, ‘O’, ‘C’ ], [ ‘J’, ‘B’, ‘F’ ], [ ‘F’, […]
Simple javascript code to create an image caption
Problem I’m trying to become better at javascript and have written a simple script that just creates some html from […]
Creating cards for a game of SET
Problem I’m creating cards for a game of SET. Can the following be rewritten in a more programmatic way, possibly […]
ES6 classes and ReactJS: implementing propTypes
Problem I had a problem to define propTypes for my React class. I ran into solution that doesn’t feel right: […]
How could this indentation-based lexer be simplified?
Problem I finally got this lexer working, full implementation here. How can the lex function be simplified? The goal is […]
Slider on JavaScript
Problem I created slider on JavaScript(ES2015). And I just want to be sure that I did my slider good. With […]
Regular expression to get a string between two strings where the last string can also be ‘end of string’
Problem I intend to extract a URL search parameter value using a regular expression in plain javascript. The parameter can […]
Regular expression to get a string between two strings where the last string can also be ‘end of string’
Problem I intend to extract a URL search parameter value using a regular expression in plain javascript. The parameter can […]
Single Page App – Browser Storage API Design
Problem I’m working on building a Browser storage handler for my single page application. The idea is that you make […]