This file contains hidden or 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
| import React from "react"; | |
| import WrapperComponent from "./WrapperComponent"; | |
| import SomeOtherComponent from "./SomeOtherComponent"; | |
| const ComponentPropsPair = () = { | |
| return ( | |
| <> | |
| <div>...</div> | |
| <WrapperComponent | |
| // You want type check to work for `contentComponent` and `contentProps` |
This file contains hidden or 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
| var terminal; | |
| function init() { | |
| var elem = $('#terminal'); | |
| if (!elem.size()) { | |
| console.log('Error! Something is wrong!'); | |
| return false; | |
| } else if (elem.data('busy')) { |
This file contains hidden or 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
| function concatTypedArrays(...args) { | |
| if (!args.length) { | |
| throw new Error('Nothing to concatenate!'); | |
| } | |
| const Constructor = args[0].constructor; | |
| args.forEach((arr) => { | |
| if (!(arr instanceof Constructor)) { |