Chen Yu
08110bdcf3
fix: fix the jsdoc of SetCache#has ( #4739 )
...
The return type should be `boolean` instead of `number`
2020-05-05 22:54:24 +02:00
Dylan Westerhold
0541ec89cc
Update links in CONTRIBUTING.md ( #4741 )
2020-05-05 22:03:05 +02:00
Kerry Liu
588bf3e20d
Handle leading zeros in quote html entity ( #4623 )
2020-02-05 09:17:16 +01:00
Luiz Américo
3f585df05c
Fix uniqueId prefix coercion ( #4619 )
2020-01-22 22:07:54 +01:00
Luiz Américo
04ebca6c86
Enable escape and once tests ( #4618 )
2020-01-08 22:43:03 +01:00
RajuPedda
cefddab1ca
Updated the check of isFunction method ( #4555 )
2019-11-19 13:35:48 -08:00
Cameron Chamberlain
a6b960be00
Remove extraneous conditional ( #4531 )
...
Since `function flow(funcs)` changed to `function flow(...funcs)` this ternary became unnecessary, since funcs will always have a length now.
2019-11-11 17:13:41 -08:00
Michał Lipiński
657f8bf71e
Fix parentheses placement broken in 16413cc
2019-11-06 21:02:07 +01:00
Michał Lipiński
619ac69746
Ensure orderBy will accept iteratee path arrays #4438 ( #4513 )
2019-10-17 11:23:07 +02:00
Ivan
23b2a33e75
Fix vulnerabilities in npm packages ( #4490 )
2019-10-03 13:56:41 -07:00
Graeme Yeates
23286d6428
Short circuit sortedIndexBy methods for empty arrays ( #4496 )
2019-10-03 13:56:09 -07:00
Anatoliy Kurochkin
898b378f06
perfomance fixes, eslint fixes ( #4482 )
2019-09-26 00:58:44 -07:00
jdalton
29eb5713f5
Cleanup baseOrderBy.
2019-08-30 13:44:00 -07:00
Mohit Y
5df1777477
add order by behaviour with array similar to get method ( #4453 )
...
* add order by behaviour with array similar to get method
* remove typo for fixing orderby iteratee assignment
* lint fixes
* update test case
* include package-lock from master
* Add identity function for default iteratee
2019-08-30 13:38:49 -07:00
Luiz Américo
ad38dc0115
Prevent ReDos in words ( #4450 )
2019-08-28 16:07:13 -07:00
Luiz Américo
0e9d44eedb
Fix flow and flowRight parameter handling ( #4445 )
...
* Enable flow and flowRight tests
* Remove flow and flowRight tests for default value and shortcut fusion
* Use native rest parameters / spread operator in flow and flowRight
* Fix syntax of flow and flowRight examples
2019-08-28 16:06:45 -07:00
Luiz Américo
e51a424513
Fix string methods to handle empty values ( #4442 )
...
* Enable strings category methods tests
* Ensure escape, pad, padEnd, padStart, trim, trimEnd, trimStart, unescape return an empty string for falsey values
* Coerce value to string using toString in truncate, capitalize and case methods
* Ensure createCaseFirst returns an empty string for falsey values
2019-08-26 06:13:55 -07:00
Luiz Américo
abb54cc49a
Simplify toString ( #4441 )
...
* Assume Symbol exists in toString tests
* Use native array map instead of custom one in toString
* Assume Symbol.prototype.toString exists in toString
2019-08-25 13:25:42 -07:00
Luiz Américo
3ebb38d389
Coerce findLastIndex and lastIndexOf fromIndex parameter to integer ( #4440 )
...
* Enable lastIndexOf, findLast and findLastIndex
* Coerce findLastIndex fromIndex parameter to integer
* Coerce lastIndexOf fromIndex parameter to integer
2019-08-24 09:44:00 -07:00
Luiz Américo
ed4b3a2ddb
Enable case methods tests ( #4436 )
2019-08-24 09:41:50 -07:00
Luiz Américo
91c9cb1ea3
Ensure escapeRegExp returns an empty string when passing falsy values ( #4432 )
...
* Enable escapeRegExp tests
* Ensure escapeRegExp returns an empty string when passing falsy values
* Add parens around expression in escapeRegExp
2019-08-22 16:08:13 -07:00
Luiz Américo
9971765d0c
Enable create tests and adapt it for the new primitive prototype behavior ( #4418 )
...
* Enable create tests and adapt it for the new primitive prototype behavior
* Use isObject in create tests instead of manual check
* Store properties in a variable when used more than once in create tests
* Add parens around arrow function params in create tests
2019-08-22 16:07:43 -07:00
Luiz Américo
e5f840745b
Flatten at paths parameter ( #4431 )
...
* Enable at tests
* Flatten at paths parameter
2019-08-22 07:49:36 -07:00
Luiz Américo
1011cfdf4c
merge: copy function values independent of source index ( #4429 )
...
* merge: copy function values independent of source index
* Enable merge tests
2019-08-22 07:48:28 -07:00
Luiz Américo
2cf08be625
Ensure after n parameter is coerced from NaN to 0 ( #4430 )
...
* Enable after tests
* Ensure after n parameter is coerced from NaN to 0
2019-08-22 07:46:46 -07:00
Michał Lipiński
8b441a506b
Align indentations
2019-08-20 12:13:07 +02:00
Michał Lipiński
f90d0aec23
Update eslint and eslint-plugin-import
2019-08-20 12:09:33 +02:00
Luiz Américo
e2555a43ad
Implement asciiWords and unicodeWords using String.match instead of binding RegExp.exec ( #4417 )
...
* Enable words tests
* Implement asciiWords and unicodeWords using String.match instead of binding RegExp.exec
2019-08-18 11:24:56 -07:00
Phap Dinh
15e1557b2a
lint files ( #4416 )
...
* lint files
* added back arrow-paren and removed duplicate
2019-08-17 10:44:54 -07:00
Luiz Américo
5b4dc54465
Coerce to integer and set default value for chunk size parameter ( #4413 )
...
* Enable chunk module tests
* Coerce to integer and set default value for chunk size param
2019-08-17 09:53:11 -07:00
Luiz Américo
37cd5dc97a
Coerce drop and dropRight n param using toInteger ( #4412 )
...
* Coerce dropRight n param using toInteger
* Coerce drop n param using toInteger
2019-08-16 15:52:06 -07:00
Luiz Américo
a965836cf3
Enable indexOf tests ( #4411 )
2019-08-16 15:51:17 -07:00
Luiz Américo
ff4949b8c2
Coerce indexOf fromIndex parameter to integer ( #4410 )
2019-08-16 10:56:41 -07:00
Luiz Américo
4f68e93a43
Add missing isObject import to isIterateeCall ( #4409 )
2019-08-16 10:53:49 -07:00
Luiz Américo
142cee066d
Do not use property shorthand in countBy documentation ( #4405 )
2019-08-14 21:22:09 -07:00
Luiz Américo
e2ae5b857c
Add missing isTypedArray import to baseClone ( #4404 )
2019-08-14 21:21:27 -07:00
jdalton
f8c7064d45
Cleanup security.md document.
2019-07-23 13:57:47 -07:00
Liran Tal
becd982749
docs(security): add responsible disclosure policy ( #4374 )
2019-07-23 13:48:17 -07:00
John-David Dalton
dce7fccbb6
Add back accidentally removed semicolons to escape.js.
2019-07-02 16:08:37 -07:00
Jack Works
8bc17fe659
Add support for globalThis when detecting global object ( #4347 )
2019-07-02 11:35:27 -07:00
lvzhenbang
4df32723c2
fix reTypedTag error ( #4342 )
2019-06-26 09:11:14 -07:00
Youcef Mammar
abde9319fd
Fix typo in merge test ( #4334 )
2019-06-24 09:17:18 -07:00
James Yang
488e62bd79
Fix stringToPath bug for consecutive [] ( #4319 )
2019-06-07 09:25:16 -07:00
Yang Jin
8fdf0ed9fa
Minor doc format ( #4285 )
2019-04-28 09:00:44 -07:00
John-David Dalton
6b1d83c968
Fix typo in toPlainObject().
2019-04-14 22:05:23 -07:00
Amu
c68170b336
Fix findLast missing dependency ( #4259 )
2019-04-14 09:26:02 -07:00
David Luzar
750067f42d
tweak _.clone/_.cloneDeep docs ( #4239 )
2019-03-18 00:04:04 -07:00
Amu
c541e4ccdc
Fix _.maxBy and _.minBy ( #4233 )
2019-03-11 21:43:45 -07:00
Steve Moser
e7221b96ec
Remove --save option as it isn't required anymore ( #4199 )
...
* Remove --save option as it isn't required anymore
* Add note about using npm < 5.0.0
2019-02-20 15:36:22 +00:00
Benjamin Tan
d5ef31929a
Add initial test files from lodash v4. ( #4172 )
...
* Install test dependencies.
* Add initial test files.
These files were created using a simplistic AST manipulator using `recast` to
preserve formatting. There's bound to be a huge chunk of errors, but this serves
as a good start. QUnit was replaced with Mocha, with ES2015 imports running via
`esm`.
As far as possible, QUnit-specific syntax has been replaced with Mocha's
`describe` and `it`, while the native Node.js `assert` module is used for
assertions. Files in the `test` directory ending in `.test.js` will be treated
as test files.
* Add initial passing files to test run.
2019-02-12 09:11:32 -08:00