The majority of my content is in Gists (https://gist.github.com/robertdempsey) for now, as these are what I use in my articles https://medium.com/@rd1982rd
Pinned Loading
-
Sets the value of 'a' to 4, but also...
Sets the value of 'a' to 4, but also stores the timestamp from the source for when the notification was published 1/** create connection pool to system DB in MongoDB
2* assume we are using https://www.npmjs.com/package/mongodb
3* assume we begin with:
4{
5system_id: 123,
-
Shows how we can choose to only upda...
Shows how we can choose to only update documents with older values of our property using timestamps 1/** create connection pool to system DB in MongoDB
2* assume we are using https://www.npmjs.com/package/mongodb
3* assume we begin with:
4{
5system_id: 123,
-
A native omit function that allows y...
A native omit function that allows you to specify multiple properties to omit. 1const omit = (keysToOmit: string[], originalObj = {}) =>
2Object.fromEntries(
3Object.entries(originalObj)
4.filter(([key]) => !keysToOmit.includes(key))
5)
-
ES6RestAndUnsetOmit.ts
ES6RestAndUnsetOmit.ts 1const omit = (originalObject = {}, keysToOmit = []) => {
2const clonedObject = { ...originalObject };
34for (const path of keysToOmit) {
5_.unset(clonedObject, path)
-
-
vega/ts-json-schema-generator
vega/ts-json-schema-generator PublicGenerate JSON schema from your Typescript sources
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.