Static Properties Array.from(‘123’); // [‘1′,’2′,’3’] Array.isArray([1,2,3]); // true Array.of(1,2,3) // [1,2,3] Instance Properties Search or run test on array [1,2,2,3].indexOf(2); // 1 [1,2,2,3].lastIndexOf(2); // 2
How to Update Node Dependencies to the Latest Versions in package.json
Link Just running npm update won’t do the trick. Here’s why. Running npm install will install the latest version of as well as update the
Reactjs – useMemo and useCallback hooks
Think of memoization as caching a value so that it does not need to be recalculated. useMemo The React useMemo Hook returns a memoized value.
ReactJS useContext Hook
Context provides a way to pass data or state through the component tree without having to pass props down manually through each nested component. It
How to pass data from child component to its parent in ReactJS
To pass data from child to parent component in React: At what situation we pass handler function from parent to child component in react? Passing
Logger in Node.js- Winston
Best Practices for Logging in Node.js Use Streams to Build High-Performing Node.js Applications How to collect, customize, and centralize Node.js logs How to implement a
ReactJS – Dynamically Adding Multiple Input Fields
Create Dynamic Forms in React Using React Hook Forms index.js import React, { StrictMode } from ‘react’; import { createRoot } from ‘react-dom/client’; import App
IOS App Environment Setting
Xcode Releases You can check which Xcode version is supported by your OS here; You can download all versions of Xcode from this site https://stackoverflow.com/questions/68982941/install-xcode-on-macos-10-15-catalina
Comparing npm and Yarn Commands
Install dependencies npm install => yarn Install a package npm install [package_name] => yarn add [package_name] Install a package globally npm install -g [package_name] =>
MongoDb Aggregation – Part 3
Reference Exploring the Aggregation Framework in MongoDB MongoDB Lookup, Out and Merge Aggregation Operations #Part11 – Priya K Express js Mongoose | Lookup into Lookup