mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Apply class transform.
This commit is contained in:
@@ -12,9 +12,11 @@ import stackSet from './_stackSet.js';
|
||||
* @constructor
|
||||
* @param {Array} [entries] The key-value pairs to cache.
|
||||
*/
|
||||
function Stack(entries) {
|
||||
const data = this.__data__ = new ListCache(entries);
|
||||
this.size = data.size;
|
||||
class Stack {
|
||||
constructor(entries) {
|
||||
const data = this.__data__ = new ListCache(entries);
|
||||
this.size = data.size;
|
||||
}
|
||||
}
|
||||
|
||||
// Add methods to `Stack`.
|
||||
|
||||
Reference in New Issue
Block a user