FORCE NPM to use latest version of TYPESCRIPT

Re posted from:   I recently started using TypeScript for a new project, and hit a few snags along the way. The first of which, was that my local project was using an older version of TypeScript, specifically . This was odd, because I had just installed the latest version of TypeScript, but globally and locally. […]

JQUERY $(element, plainObject)

I ran across this article and a set of interesting jquery syntax:  $(‘<li>’, { text: formatItem(item) }).appendTo($(‘#products’)); So after stumping a few folks and searching the jquery documentation I figured out what exactly it is doing mostly. This explains the syntax: This explains why its flexibility can lead to unintended consequences… While the second argument is convenient, its […]