Skip to content

Instantly share code, notes, and snippets.

@PaulKinlan PaulKinlan/
Last active Sep 13, 2017

What would you like to do? = function(arg) {
if(arg === null || arg === undefined) return console.log(arg);
if(typeof(arg) === 'string') return console.log(arg);
if('__help' in arg) { console.log(arg.__help); }
if('__help' in arg.constructor) { console.log(arg.constructor.__help); }
class Test {
static get __help() {
return "This is a Test";
constructor() {
sayHello(msg) {
return `Hello ${msg}`;
console.log(new Test);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.