Skip to content

Conversation

@fmoessle
Copy link

Mention _.omit in _.pick and _.omitBy in _.pickBy documentation.

@jsf-clabot
Copy link

jsf-clabot commented Aug 20, 2019

CLA assistant check
All committers have signed the CLA.

<h3 id="pick"><a href="#pick" class="fa fa-link"></a><code>_.pick(object, [paths])</code></h3>
<p><a href="https://github.com/lodash/lodash/blob/4.17.15/lodash.js#L13559">source</a> <a href="https://www.npmjs.com/package/lodash.pick">npm package</a></p>
<p>Creates an object composed of the picked <code>object</code> properties.</p>
<p>The opposite of <a href="#omit"><code>_.omit</code></a>; creates an object composed of the picked <code>object</code> properties.</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make it align more with the omit flavor and do:

; this method creates

@jonchurch jonchurch changed the title Enhance docs Mention _.omit in _.pick and _.omitBy in _.pickBy documentation. Dec 5, 2025
@jonchurch
Copy link
Member

These kinds of changes should target the JSDoc of lodash.js in the main lodash repo, so they are not overwritten when the docs are regenerated in the future.

The docs are generatd from the JSDoc in the source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants