Yup is a JavaScript schema builder for value parsing and validation. Define a schema, transform a value to match, validate the shape of an existing value, or both. Yup schema are extremely expressive and allow modeling complex, interdependent validations, or value transformations. Yup’s API is heavily inspired by Joi, but leaner and built with client-side validation …
Make a mapping object from an array of objects using Reduce function in Javascript
Sometimes, we face some usecases to make a mapping object from an array of object. For example, we have a Users array, we need to find a user by tagId. Here tagIdis supposed to be unique. Generally, we may try to use array.find() function to find the object with tagId. But using array.reduce()function in Javascript, …
Slate.js
Slate.js is a rich text editor library similar to Draft.js The most important feature of slate.js is strong customizability. Slate.js itself provides very rich functionalities and we can add our plugin to slate.js very easily. Disadvantage of this library is steep learning curve. More details can be found here: https://docs.slatejs.org/







