Rename _.createCallback to _.callback.

This commit is contained in:
John-David Dalton
2014-06-17 01:07:04 -07:00
parent 20202b793b
commit 0d2db28908
2 changed files with 55 additions and 56 deletions

View File

@@ -3012,8 +3012,8 @@
});
test('should perform a shallow flatten when used as a callback for `_.map`', 1, function() {
var array = [[['a']], [['b']]];
deepEqual(_.map(array, _.flatten), [['a'], ['b']]);
var array = [[[['a']]], [[['b']]]];
deepEqual(_.map(array, _.flatten), [[['a']], [['b']]]);
});
test('should treat sparse arrays as dense', 4, function() {
@@ -10945,7 +10945,7 @@
var acceptFalsey = _.difference(allMethods, rejectFalsey);
test('should accept falsey arguments', 189, function() {
test('should accept falsey arguments', 188, function() {
var emptyArrays = _.map(falsey, _.constant([])),
isExposed = '_' in root,
oldDash = root._;