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
/** | |
* Load an ESM package from npm in your JavaScript environment. | |
* | |
* Loads packages from https://www.npmjs.com/ via the CDN https://www.jsdelivr.com/ | |
* | |
* Usage: | |
* | |
* const lodash = await npm('lodash-es') | |
* const lodash = await npm('lodash-es@4') | |
* const lodash = await npm('[email protected]') |
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 kotlin.reflect.full.declaredMemberProperties | |
import kotlin.reflect.full.primaryConstructor | |
/** | |
* Merge two data classes | |
* | |
* The resulting data class will contain: | |
* - all fields of `other` which are non null | |
* - the fields of `this` for the fields which are null in `other` | |
* |
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
{ | |
"name": "es7_async", | |
"version": "0.0.1", | |
"description": "", | |
"license": "ISC", | |
"dependencies": { | |
"asyncawait": "^0.7.4", | |
"babel-core": "^5.4.4", | |
"babel-plugin-typecheck": "0.0.3" | |
} |
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
/* | |
String interpolation method for underscore.js | |
Usage: | |
var props = { | |
first: 'Jos', | |
last: 'de Jong' | |
}; | |
var message = _.interpolate('Hello $first $last, welcome!', props); |