client/lib/local-list/index.js
function StatsDataLocalList( options ) {
	if ( ! ( this instanceof StatsDataLocalList ) ) {
		return new StatsDataLocalList( options );
	}

	if ( 'string' !== typeof options.localStoreKey ) {
		throw new TypeError( 'a options.localStoreKey must be passed in' );
	}

	debug( 'creating new local list' );
	this.localStoreKey = options.localStoreKey;
	this.limit = options.limit || 10;
	return this;
}
function StatsDataLocalList( options ) {
	if ( ! ( this instanceof StatsDataLocalList ) ) {
		return new StatsDataLocalList( options );
	}

	if ( 'string' !== typeof options.localStoreKey ) {
		throw new TypeError( 'a options.localStoreKey must be passed in' );
	}

	debug( 'creating new local list' );
	this.localStoreKey = options.localStoreKey;
	this.limit = options.limit || 10;
	return this;
}
Internal dependencies
 
StatsDataLocalList component

@api public