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

selectn

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

selectn - npm Package Compare versions

Comparing version 1.0.17 to 1.0.18

5

changelog.md
# Change Log
All notable changes to this project will be documented in this file (keepachangelog.com).
## 1.0.18 - 2016-05-02
### Added
- Add API usage example for case where value at path is a function and is automatically invoked.
- This is an old feature but I've finally gotten around to adding a usage example.
## 1.0.17 - 2016-05-02

@@ -5,0 +10,0 @@ ### Fixed

2

package.json
{
"name": "selectn",
"description": "Curried property accessor function that resolves deeply-nested object properties via dot/bracket-notation string path while mitigating TypeErrors via friendly and composable API.",
"version": "1.0.17",
"version": "1.0.18",
"author": "Wil Moore III <wil.moore@wilmoore.com>",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/wilmoore/selectn.js/issues",

@@ -137,2 +137,14 @@ # selectn

#### value at path is a function
> Avoid `var fn = data.may.be.a.fn; if (typeof fn === 'function') fn()`.
```js
var selectn = require('selectn')
function hi () { return 'hi' }
var data = { may: { be: { a: { fn: hi } } } }
selectn('may.be.a.fn', data)
//=> 'hi'
```
## API (partial application)

@@ -139,0 +151,0 @@

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