Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Either use the object's own property, or a fallback

License

NotificationsYou must be signed in to change notification settings

isaacs/own-or

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Either use the object's own property, or a fallback

Useful for setting default values.

API

ownOr(object, key, fallback)

USAGE

varownOr=require('own-or')varconfig={some:'configs'}varfoo=ownOr(config,'bar','baz')// 'baz'varsome=ownOr(config,'some','quux')// 'configs'

About

Either use the object's own property, or a fallback

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp