Get user's geo location using JavaScriptUse of Geo location and Geo IP API2 min read·dhruvangg.hashnode.devApr 19, 2021
Match arrays in JavaScriptCheck if array A has all elements of array B let a = [1,2,3], b = [1,2,3,4], c = [1,2]; let checkEvery = (arr, target) => target.every(el => arr.includes(el)); console.log(checkEvery(b, a)) // true console.log(checkEvery(c, a)) ...1 min read·dhruvangg.hashnode.devJan 12, 2021
Lazy load ImagesImages are essential for every website and application today. Whether it be marketing banners, product images or logos, it is impossible to imagine a website without images. Sadly though, images are large in size making them the single largest contri...2 min read·dhruvangg.hashnode.devOct 14, 2020