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
const typedPrimitive = (I: Function) => (i: undefined) => { | |
const derived = Object(i); | |
Object.setPrototypeOf(derived, Object(i)); | |
const typeProperty = { | |
enumerable: false, | |
configurable: false, | |
writable: false, | |
value: I |
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
{ | |
//Issue: | |
//not compatible with TypeScript Types | |
// "@types/react" | |
// "@types/react-dom" | |
//TypeScript | |
// import * as React from "react"; | |
// import * as ReactDOM from "react-dom"; | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<!-- Required styles for MDC Web --> | |
<link rel="stylesheet" href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css"> | |
<style type="text/css"> |
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
const identity = a => a; | |
const customOperator = op => f => set => | |
Object.defineProperty(set, op, { | |
value: function (a) { | |
return f(a)(this); | |
} | |
});//returns new set/object | |
Function.prototype |> |
OlderNewer