Skip to content

Instantly share code, notes, and snippets.

@daybrush
Created September 28, 2018 06:58
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 daybrush/82100ab79a2629b52e93eb4485d14fc2 to your computer and use it in GitHub Desktop.
Save daybrush/82100ab79a2629b52e93eb4485d14fc2 to your computer and use it in GitHub Desktop.
static class properties
class A {
static a() {}
static b = 1;
static c = /mobi|ios|and/g.test(agent);
}
// transpile
var A = /*#__PURE__*/(function () {
A.a = function () {};
})();
A.b = 1;
A.c = /mobi|ios|and/g.test(agent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment