This shopify script is used on shopify+ Stores to reorder the shippingrates. (Great for using in combination with your custom shipping carrier service) (the first character of the shipping name should be a number (0..9)) then the script will reorder accordingly, and remove the first character
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Primary application logic for our Functional Programming blog example | |
* See related blog series at: http://www.datchley.name/tag/functional-programming/ | |
* Version: 2.0 | |
*/ | |
// A simple, resuable comparison for '>=' | |
function greaterThanOrEqual(a, b) { | |
return a >= b | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// An array of articles with their tags. | |
var articles = [ | |
{title: "Introduction to Javascript Scope", tags: [ "Javascript", "Variables", "Scope"]}, | |
{title: "Javascript Closures", tags: [ "Javascript", "Variables", "Closures"]}, | |
{title: "A Guide to PWAs", tags: [ "Javascript", "PWA"]}, | |
{title: "Javascript Functional Programming Examples", tags: [ "Javascript", "Functional", "Function"]}, | |
{title: "Why Javascript Closures are Important", tags: [ "Javascript", "Variables", "Closures"]}, | |
]; | |
// A function that reduces the above array to an |