Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
baiji-meld
Advanced tools
Readme
Lead Maintainer: Oliver Wang
Node utilities shared amongst the extended baiji universe
npm install baiji-meld
var meld = require('baiji-meld');
meld.isArray([1,2,3]);
// => true
All the functions used in Meld is based on lodash(v4.0.0-pre), some of them have been customized(italic) in the following list.
value
.
meld.clone(value)
value
is classified as an Array
object.
meld.isArrayLike(value)
value
is classified as a boolean primitive or object.
meld.isBoolean(value)
value
is classified as a Date
object.
meld.isDate(value)
value
is empty. A value is considered empty unless it's an arguments
object, array, string, or jQuery-like collection with a length greater than 0
, an object with own enumerable properties or a number.
meld.isEmpty(value)
value
is classified as a Function
object.
meld.isFunction(value)
value
is a valid array-like length.
meld.isLength(value)
value
is null
or undefined
.
meld.isNil(value)
value
is null
.
meld.isNull(value)
value
is classified as a Number
primitive or object.
meld.isNumber(value)
value
is the language type of Object
.
meld.isObject(value)
value
is a plain object, that is, an object created by the Object
constructor or one with a [[Prototype]]
of null
.
meld.isPlainObject(value)
value
is not Empty
meld.isPresent(value)
value
is classified as a RegExp
object.
meld.isRegExp(value)
value
is classified as a String
primitive or object.
meld.isString(value)
value
is undefined
.
meld.isUndefined(value)
false
, null
, 0
, ""
, undefined
, and NaN
are falsey.
meld.compact(array)
array
a single level.
meld.flatten(array)
array
.
meld.first(array)
array
.
meld.last(array)
meld.entend(object, [sources])
path
of object
. If the resolved value is undefined
the defaultValue
is used in its place.
meld.get(object, path, [defaultValue])
path
is a direct or inherited property of object
.
meld.hasIn(object, path)
object
.
meld.keys(object)
object
.
meld.keysIn(object)
object
.
meld.values(object)
string
on the left and right sides if it's shorter than length
. Padding characters are truncated if they can't be evenly divided by length
.
meld.pad([string=''], [length=0], [chars=' '])
string
on the left side if it's shorter than length
. Padding characters are truncated if they exceed length
.
meld.padLeft([string=''], [length=0], [chars=' '])
string
on the right side if it's shorter than length
. Padding characters are truncated if they exceed length
.
meld.padRight([string=''], [length=0], [chars=' '])
meld.escapeRegExp([string=''])
meld.iteratee
: a function that a invokesfunc
with the arguments of the created function.
collection
invoking iteratee
for each element. The iteratee is invoked with three arguments: (value, index|key, collection). Iteratee functions may exit iteration early by explicitly returning false
.
meld.each(collection, [iteratee = meld.identity])
meld.each
except that it iterates over elements of collection
from right to left.
meld.eachRight(collection, [iteratee = meld.identity])
collection
through iteratee
. The iteratee is invoked with three arguments: (value, index|key, collection).
meld.map(collection, [iteratee = meld.identity])
array
. If array
is empty or falsey undefined
is returned.
meld.max(array)
array
. If array
is empty or falsey undefined
is returned.
meld.min(array)
MIT
FAQs
Baiji meld(Utils tools)
The npm package baiji-meld receives a total of 3 weekly downloads. As such, baiji-meld popularity was classified as not popular.
We found that baiji-meld 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.