Created
July 6, 2017 13:46
-
-
Save sospedra/647d4a180047593ff92d40cc9827217d to your computer and use it in GitHub Desktop.
Lodash objects difference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_.fromPairs(_.differenceBy(_.entries(original), _.entries(target), ([key, val]) => val)) |
Hi, I am getting the error: [ts] Property 'convert' does not exist on type 'Transform'.
my code:
import { transform, isEqual, isObject} from "lodash/fp";
const _transform = transform.convert({
cap: false
});
Is this a typescript version issue?
"@types/lodash": "^4.14.106",
"lodash": "^4.17.5",
"tslint": "5.8.0",
"typescript": "2.7.2"
Thanks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Functional programming (FP) exmaple: 🥇