Security News
Highlights from the 2024 Rails Community Survey
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
#wodge A collection of useful functions.
#API Documentation Generated jsdoc documentation.
##extend Merge a list of objects, left to right, into one.
###Parameters object {Object} - a sequence of Object instances to be extended
###Example
w.extend({}, { one: 1, three: 3 }, { one: "one", two: 2 }, { four: 4 });
// { one: "one", two: 2, three: 3, four: 4 }
##clone Returns a copy of the input object
###Parameters input {Object} - the object to clone
Returns Object
##omit Returns a clone of the input object, minus the specified properties
###Parameters input {Object} - the object to clone toOmit {string[]} - an array of property names to omit from the clone
###Example
w.omit({ one: 1, two: 2, three: 3, four: 4 }, [ "two", "four" ]);
// { one: 1, three: 3 }
Returns Object
##escapeRegExp escape special regular expression characters
###Example
w.escapeRegExp("(.*)");
// '\\(\\.\\*\\)'
##pluck Plucks the value of the specified property from each object in the input array
###Parameters arrayOfObjects {Object[]} - the input array of objects the {string} - property to pluck
###Example
var data = [
{one: 1, two: 2},
{two: "two"},
{one: "one", two: "zwei"},
];
w.pluck(data, "one");
// [ 1, "one" ]
w.pluck(data, "two");
// [ 2, "two", "zwei" ]
w.pluck(data, "one", "two");
// [ 1, "two", "one" ]
Returns Array
##arrayify Either:
##getHomeDir Cross-platform home directory retriever
##exists ###Example
exists([ 1, 2, 3 ], 2) // true
exists([
{ result: false, number: 1 },
{ result: false, number: 2 }
], { result: true }) // false
##first
Works on an array of objects. Returns the first object with property
set to value
.
##commonDir commonDir returns the directory common to each path in the list
###Parameters files {Array} - An array of file paths to inspect
Returns string - A single path ending with the path separator, e.g. "/user/some/folder/"
FAQs
a wodge of functional dough
The npm package wodge receives a total of 5 weekly downloads. As such, wodge popularity was classified as not popular.
We found that wodge 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
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.