mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Bump to v3.9.0.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
var keys = require('./keys');
|
||||
var keys = require('./keys'),
|
||||
toObject = require('../internal/toObject');
|
||||
|
||||
/**
|
||||
* Creates a two dimensional array of the key-value pairs for `object`,
|
||||
@@ -15,6 +16,8 @@ var keys = require('./keys');
|
||||
* // => [['barney', 36], ['fred', 40]] (iteration order is not guaranteed)
|
||||
*/
|
||||
function pairs(object) {
|
||||
object = toObject(object);
|
||||
|
||||
var index = -1,
|
||||
props = keys(object),
|
||||
length = props.length,
|
||||
|
||||
Reference in New Issue
Block a user