Last active
December 10, 2018 23:34
-
-
Save BobGneu/fd61fe4fa50854ce56bd026cea53a7de to your computer and use it in GitHub Desktop.
Wrangling Input within TS - Example 3
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
(() => { | |
"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