Destructuring same key name
A property can be unpacked from an object and assigned to a variable with a different name than the object property. response1 = { data : { username : ‘john’ }, status: ‘200’ }; response2 = { data : { obj
A property can be unpacked from an object and assigned to a variable with a different name than the object property. response1 = { data : { username : ‘john’ }, status: ‘200’ }; response2 = { data : { obj
Sometime we may need to create a timer to count how long the javascript is perform from begin and end. Below is a simple code that give a little help. var timer = { start: function() { this.begin = new Date().valueOf();
If you have a use case like email address where it formatting in UUID pattern. Here is the regular expression that can help you to filter among them.
This is some simple jQuery function i used for my pets project. Check it out