Tracy-Gregory's public fiddles
-
partial-application code
Demonstration code for my Dev.To post on lenses using partial-application.
-
Cascaded Sort (extended)
Helper function for the application of a collection of sort criteria to an array of objects.
-
Filter Conditions
A function to resolve a specific filter and return a predicate function
-
Two-way data binding
No-Library (pure JS), HTML, CSS, JavaScript
-
Item Lens with value accessors
A helper function for extracting a value from an Item given an attribute or property (aspect) name
-
Search and Filter
Helper function(s) to generate and utilise predicate functions
-
Cascaded Sort
Helper function for the application of a collection of sort criteria to an array of objects.
-
Item Lens
A helper function for extracting a value from an Item given an attribute or property (aspect) name
-
Bearing
Bearing calculation function
-
reverse-string
No-Library (pure JS), HTML, CSS, JavaScript
-
Simple Range function
Function generating a numeric data series
-
Delimited Number
Function that converts a numeric string to insert delimitation characters.
-
JS Type Detection
Utility function of the reliable detection of a variable's data type.
-
Date-Day-Text
Functions for returning arrays of weekdays/months as text in long and short form.
-
Curried Bounded Value
A (nearly) curried function that limits a value to within a min and max range.
-
MVC Dec2Hex
An alternative version of the Dec-to-Hex project using a Model-View-Controller pattern.
-
Boolean Algebra
A Selection of Boolean Algebra expressions from CS 101
-
PubSubHub
An implementation of a Publish-and-Subscribe model.
-
string-parser
A String parser
-
True-False
No-Library (pure JS), HTML, CSS, JavaScript