![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@blakek/make-lookup
Advanced tools
📒 Make a lookup object from an array of objects
Takes a list of items in an array an changes it to an object for fast access.
Using Yarn:
$ yarn add @blakek/make-lookup
…or using npm:
$ npm i --save @blakek/make-lookup
import { makeLookup } from '@blakek/make-lookup';
const users = [
{ sites: { github: { username: 'blakek' } } },
{ sites: { github: { username: 'gsandf' } } },
{ sites: { github: { username: 'google' } } }
];
const usersByUsername = makeLookup(users, 'sites.github.username');
console.log(usersByUsername.blakek);
// => { sites: { github: { username: 'blakek' } } }
makeLookup
function makeLookup<T>(
inputArray: any[],
lookupProperty: Array<number | string> | string;
): Record<string, T>;
Creates a lookup object for a given array.
lookupProperty
is a path to the property in either dot notation or an array of
path parts. See blakek/deep for details on this path.
Node.js and Yarn are required to work with this project.
To install all dependencies, run:
yarn
yarn build | Builds the project to ./dist |
yarn format | Format the source following the Prettier styles |
yarn test | Run project tests |
yarn test --watch | Run project tests, watching for file changes |
MIT
FAQs
📒 Make a lookup object from an array of objects
The npm package @blakek/make-lookup receives a total of 1 weekly downloads. As such, @blakek/make-lookup popularity was classified as not popular.
We found that @blakek/make-lookup demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.