Search code snippets, questions, articles...
Lodash - Get current timestamp in milliseconds
The Lodash now() function can be used to get the current timestamp. It returns the timestamp in milliseconds. See the below code examples to understand.
const timestamp = _.now();
Try it yourself
The _.now() function is an in-built function of Lodash Library and it is mainly used to get the current timestamp. The Lodash library is used to manipulate data in the form of arrays or objects.