UI / UX
August 16, 2019
August 14, 2019
While dealing with mathematical calculations we need to make sure that the variable in question is actually a number. Any variable can be converted to a number using the global Number() method.
August 10, 2019
There are situations where an application needs to wait for the completion of multiple Promises and needs to know when they have all finished. In such cases Promise.all() or Promise.allSettled() methods can be used.
August 8, 2019
August 6, 2019
August 4, 2019
ES6 has introduced the includes() method which a better way of detecting substring in a given string.
August 1, 2019
July 28, 2019
July 25, 2019
July 23, 2019
July 21, 2019
Passing Custom Parameters to setTimeout Callback
The setTimeout() method can have multiple parameters depending on the need. Custom parameters can be passed after the callback function and timeout parameters. These extra parameters are passed to the callback function - as its arguments.
July 19, 2019
Web Share API - Implement Share Button on Websites with Native Methods
The Web Share API helps a user in sharing text or URL in a website by using the sharing mechanism of the device. With this API we can add a "Share" button in a website.
July 17, 2019
ES6 has brought in Computed property names that helps in creating a new object with dynamic property names. The dynamic keys are specified between [ ] square brackets.
July 15, 2019
Rest parameter syntax can be used in function declarations to compress passed arguments to an array. By using the Rest parameter syntax indefinite number of arguments can be passed to a function.
July 13, 2019
Spread operator will expand an iterable, such as an array or a string. Expansion here means that the input object is broken down to its individual values.
July 11, 2019
There are some cases where a web application needs to read a local file from the user's system. This can be done with the FileReader interface.
July 9, 2019
The concat() method can be used to merge two or more arrays. Duplicates in the merged array can be removed using a Set object.
July 7, 2019
A part of an array can be extracted with the Array.slice() method.
July 5, 2019
July 3, 2019
The filter() method can be used to get intersection or difference of arrays. Duplicates can be eliminated by converting array to a Set object.
© UsefulAngle.com 2016 - 2019. All code MIT license.
UsefulAngle on Twitter
UsefulAngle on Facebook