New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lowerdash

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lowerdash

Useful mixins for Lo-Dash, formerly hidash

  • 0.4.0-draft-4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

lowerdash - ES6

My mixins for Lodash, formerly known as hidash.

Now available as ES6 style module and use lodash as peerDependency

Lowerdash provides the following methods:

Function

straitjacket (fn Function, Mixed defaultValue)

Returns a new function that tries to invoke passed fn and return defaultValue otherwise.

import closest from 'lowerdash/utility/straitjacket';

var straitjacketed = straitjacket(function(){
	return undefinedValue;
}, 'Not found');

straitjacketed();
// -> 'Not found'

Array

closest

Compares passed value to passed array values and return the closest.

import closest from 'lowerdash/array/closest';
closest([0, 10, 20, 30, 40], 6);
// -> 10
arry (any Mixed)

Returns an array from any array-like. If passed any is not array-like, returns a new array containing the any element.

import arry from 'lowerdash/array/arry';
arry([1, 2, 3]);
// -> [1, 2, 3]

arry(1);
// -> [1]

function(a, b, c){
	return arry(arguments);
	// -> [a, b, c]
}
insertAt
gluten
penultimate
replaceAt

Object

keyOf
norris

Array & Object

Painless async series without promise.

eachAsync
eachDelayed
eachParallel

Deeper

Set/get/erase Object properties from path

getFromPath
setFromPath
eraseFromPath

Usage

Node environment

npm install lowerdash

Then in your scripts:

// require lowerdash
var _ = require('lowerdash');

// or require lowerdashed lodash
var _ = require('lodash');

Browser environment

bower install lowerdash

Then include these files into your documents

<script src="bower_components/lowerdash/dist/lowerdash.js"></script>
<script src="bower_components/lodash/dist/lodash.js"></script>

Keywords

FAQs

Package last updated on 23 Nov 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc