mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Remove semicolons.
This commit is contained in:
14
conforms.js
14
conforms.js
@@ -1,8 +1,8 @@
|
||||
import baseClone from './.internal/baseClone.js';
|
||||
import baseConforms from './.internal/baseConforms.js';
|
||||
import baseClone from './.internal/baseClone.js'
|
||||
import baseConforms from './.internal/baseConforms.js'
|
||||
|
||||
/** Used to compose bitmasks for cloning. */
|
||||
const CLONE_DEEP_FLAG = 1;
|
||||
const CLONE_DEEP_FLAG = 1
|
||||
|
||||
/**
|
||||
* Creates a function that invokes the predicate properties of `source` with
|
||||
@@ -21,13 +21,13 @@ const CLONE_DEEP_FLAG = 1;
|
||||
* const objects = [
|
||||
* { 'a': 2, 'b': 1 },
|
||||
* { 'a': 1, 'b': 2 }
|
||||
* ];
|
||||
* ]
|
||||
*
|
||||
* filter(objects, conforms({ 'b': function(n) { return n > 1; } }));
|
||||
* filter(objects, conforms({ 'b': function(n) { return n > 1 } }))
|
||||
* // => [{ 'a': 1, 'b': 2 }]
|
||||
*/
|
||||
function conforms(source) {
|
||||
return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
|
||||
return baseConforms(baseClone(source, CLONE_DEEP_FLAG))
|
||||
}
|
||||
|
||||
export default conforms;
|
||||
export default conforms
|
||||
|
||||
Reference in New Issue
Block a user