Recent Changes

Updates since 2020-07-27 01:54 UTC up to 2020-08-26 01:54 UTC

1 | 3 | 7 | 30 | 90 days
List all changes Skip rollbacks Include minor changes
List later changes RSS RSS with pages RSS with pages and diff

2020-08-24

  • 20:24 UTC (new) (history) 2020-08-24 Sorting object keys with Lodash . . . . mbork I have been extremely busy recently, so I have only a short tip today. Imagine having a JavaScript object like this: { a: 1, b: 3, c: 2, } and needing to have an (almost) identical object, but sorted by increasing values. (Yes, I know that theoretically the order of object properties does not matter and should not be relied upon, but come on.)

2020-08-17

2020-08-10

2020-08-03

  • 14:55 UTC (new) (history) 2020-08-03 Look up a global variable in the database in Node.js . . . . mbork Today I encountered an interesting problem. Assume that you want a global constant in your Node.js backend, but its actual value is to be taken from a database. This means that fetching the constant should be done asynchronously. Unless you use Node.js 14.3.0 or newer (which as the time of me writing this is not yet ubiquitous), you cannot await your database request at the top level

More...

Filters