Skip to content

Instantly share code, notes, and snippets.

@BobGneu
Last active December 10, 2018 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BobGneu/fd61fe4fa50854ce56bd026cea53a7de to your computer and use it in GitHub Desktop.
Save BobGneu/fd61fe4fa50854ce56bd026cea53a7de to your computer and use it in GitHub Desktop.
Wrangling Input within TS - Example 3
(() => {
"use strict";
let instance = new TSWrangle(42);
console.log(instance.Name); // Name: 42
})();
// OR, given 42 has no length parameter
(() => {
"use strict";
let instance = new TSWrangle([42]);
console.log(instance.Name); // Name: [42]
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment