Displaying 1 to 20 from 32 results

react-values - A set of tiny React components for handling state with render props.

  •    Javascript

A set of tiny, composable React components for handling state with render props. It does this using a small render-prop-based API that exposes helpful transforms like toggle, increment, filter, etc. depending on the type of value, all based on JavaScripts native value types...

prop-types - Custom React PropType validators that we use at Airbnb.

  •    Javascript

Custom React PropType validators that we use at Airbnb. Use of airbnb-js-shims or the equivalent is recommended.Since PropTypes are typically not included in production builds of React, this library’s functionality serves no useful purpose. As such, when the NODE_ENV environment variable is "production", instead of exporting the implementations of all these prop types, we export mock functions - in other words, something that ensures that no exceptions are thrown, but does no validation. When environment variables are inlined (via a browserify transform or webpack plugin), then tools like webpack or uglify are able to determine that only the mocks will be imported - and can avoid including the entire implementations in the final bundle that is sent to the browser. This allows for a much smaller ultimate file size, and faster in-browser performance, without sacrificing the benefits of PropTypes themselves.

sort-on - Sort an array on an object property

  •    Javascript

Returns a new sorted array.The string can be a dot path to a nested object property. Prepend it with - to sort it in descending order.




propprop - Pluck a property out of an object in an Array.prototype callback

  •    Javascript

pluck a property out of an object.Perhaps you're already using Lo-Dash, Underscore.js, or another utility library. This should not supplement those libraries, and definitely cannot replace. This is better suited towards applications that don't want to carry the weight and/or functionality of such libraries, and just want something simple and modular.

known - Allow only access to known object properties using ES2015 Proxy

  •    Javascript

Proxies are objects for which the programmer has to define the semantics in JavaScript. The default object semantics are implemented in the JavaScript engine, often written in lower-level languages like C++. Proxies let the programmer define most of the behavior of an object in JavaScript. They are said to provide a meta-programming API.


has-own-prop - A safer `.hasOwnProperty()`

  •    Javascript

Shortcut for Object.prototype.hasOwnProperty.call(obj, prop).You shouldn't use .hasOwnProperty() as it won't exist on objects created with Object.create(null) or it can have been overridden.

define-lazy-prop - Define a lazily evaluated property on an object

  •    Javascript

Useful when the value of a property is expensive to generate, so you want to delay the computation until the property is needed. For example, improving startup performance by deferring nonessential operations.Object to add property to.

shapeshifter - 🐺 Generate relational schemas, PropTypes, Flow aliases, and TypeScript interfaces from JSON or GraphQL schematic files

  •    Javascript

Shapeshifter is a command line tool for generating ECMAScript (ES) compatible files that export PropTypes, Flow aliases, and TypeScript interfaces, as well as relation schema classes from JS, JSON or GraphQL schematic files. Schematics can represent database tables, API endpoints, data structures, resources, internal shapes, and more.

get-value - Use property paths (`a.b.c`) get a nested value from an object.

  •    Javascript

Use property paths like 'a.b.c' to get a nested value from an object. Even works when keys have dots in them (no other dot-prop library can do this!). Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your ❤️ and support.

mixin-deep - Deeply mix the properties of objects into the first object, while also mixing-in child objects

  •    Javascript

Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone. Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your ❤️ and support.

mixin-object - Extend the properties from any number of objects onto the first object

  •    Javascript

Mixin the own and inherited properties of other objects onto the first object. Pass an empty object as the first arg to shallow clone. Follow this project's author, Jon Schlinkert, for updates on this project and others.

omit-deep - Recursively omit specified keys from an object.

  •    Javascript

Recursively omit the specified key or keys from an object. Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

array-sort - Fast and powerful array sorting

  •    Javascript

Fast and powerful array sorting. Sort an array of objects by one or more properties. Any number of nested properties or custom comparison functions may be used. If custom functions are supplied, array elements are sorted according to the return value of the compare function. See the docs for Array.sort() for more details.

assign-deep - Deeply assign the enumerable properties of source objects to a destination object.

  •    Javascript

Deeply assign the enumerable properties and/or es6 Symbol properies of source objects to the target (first) object. Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.