Skip to content
#

lodash

Here are 775 public repositories matching this topic...

martingronlund
martingronlund commented Oct 1, 2019
const customizer = console.log // returns undefined => merging is handled by `mergeAllWith`

// good
mergeAll([{ a: 1 }, { b: 2 }]) // { a: 1, b: 2 }
mergeAllWith(customizer, [{ a: 1 }, { b: 2 }]) // { a: 1, b: 2 }
// A-OK; customizer logs the following:
// undefined 2 "b" Object { a: 1, b: 2 } Object { b: 2 } undefined

// bad
mergeAll({}, { a: 1 }, { b: 2 }) // { a: 1, b: 2 }; OU
Morriz
Morriz commented Apr 18, 2020

Your documentation shows no way to replace an objects value. Any updates to an object with:

db.get(name).find(selectors).assign(data).write()

merges the data with the existing object...not what I'd expect.

How can we replace a record without merging? Can you update your docs?

kwokhou
kwokhou commented Feb 4, 2020

This subtitle for _.isEmpty is misleading, it kind of imply that the lodash's version does not evaluate Set or Map (which is not true), see lodash isEmpty code here.

If the ❗️is for the Native implementation, it should put on top of the Native method.

_.isEmpty
Checks if value is an empty object or collection. ❗️Note

rpussente
rpussente commented Dec 2, 2016

If you try to deserialize a protobuf message without the corresponding schema you get a generic message error message:

[INFO] [record_query::proto_index] Proto descriptor cache is stale; recomputing
Missing input file.
thread 'main' panicked at 'protoc descriptor compilation failed', src/proto_index.rs:60
note: Run with `RUST_BACKTRACE=1` for a backtrace.

It would be nice to g

IrvingArmenta
IrvingArmenta commented Jul 25, 2019

I think it would be nice to add comments to the typescript definitions, using the same documentation as is in this repository. I already did it on local but I don't have the permissions for PR's of course.

This is for the usage with VScode, following the TS doc format:
<img width="1792" alt="スクリーンショット 2019-07-25 9 57 19" src="https://user-images.githubusercontent.com/20631137/61838083-b2e8c

serhalp
serhalp commented Oct 15, 2019

forbid-methods

This rule forbids the use of a configured set of lodash methods.

Rule Details

This rule takes one argument:

  • The first (required), which methods to forbid calling

The following patterns are considered warnings:

/* eslint lodash/forbid-methods: [2, ['get'] */
var result = _.get(user, 'name');
/* eslint lodash/forbid-methods: [2, ['get'

Improve this page

Add a description, image, and links to the lodash topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the lodash topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.