Skip to content

Commit 0c285a3

Browse files
committed
datastore: Change entity check argument name to be consistent
1 parent f9b8f4a commit 0c285a3

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

packages/datastore/src/index.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -346,15 +346,15 @@ Datastore.prototype.double = Datastore.double = function(value) {
346346
/**
347347
* Helper function to check if something is a Datastore Double object.
348348
*
349-
* @param {*} something
349+
* @param {*} value
350350
* @return {boolean}
351351
*
352352
* @example
353353
* datastore.isDouble(0.42); // false
354354
* datastore.isDouble(datastore.double(0.42)); // true
355355
*/
356-
Datastore.prototype.isDouble = Datastore.isDouble = function(something) {
357-
return entity.isDsDouble(something);
356+
Datastore.prototype.isDouble = Datastore.isDouble = function(value) {
357+
return entity.isDsDouble(value);
358358
};
359359

360360
/**
@@ -380,7 +380,7 @@ Datastore.prototype.geoPoint = Datastore.geoPoint = function(coordinates) {
380380
/**
381381
* Helper function to check if something is a Datastore Geo Point object.
382382
*
383-
* @param {*} something
383+
* @param {*} value
384384
* @return {boolean}
385385
*
386386
* @example
@@ -392,8 +392,8 @@ Datastore.prototype.geoPoint = Datastore.geoPoint = function(coordinates) {
392392
* datastore.isGeoPoint(coordinates); // false
393393
* datastore.isGeoPoint(datastore.geoPoint(coordinates)); // true
394394
*/
395-
Datastore.prototype.isGeoPoint = Datastore.isGeoPoint = function(something) {
396-
return entity.isDsGeoPoint(something);
395+
Datastore.prototype.isGeoPoint = Datastore.isGeoPoint = function(value) {
396+
return entity.isDsGeoPoint(value);
397397
};
398398

399399
/**
@@ -423,15 +423,15 @@ Datastore.prototype.int = Datastore.int = function(value) {
423423
/**
424424
* Helper function to check if something is a Datastore Integer object.
425425
*
426-
* @param {*} something
426+
* @param {*} value
427427
* @return {boolean}
428428
*
429429
* @example
430430
* datastore.isInt(42); // false
431431
* datastore.isInt(datastore.int(42)); // true
432432
*/
433-
Datastore.prototype.isInt = Datastore.isInt = function(something) {
434-
return entity.isDsInt(something);
433+
Datastore.prototype.isInt = Datastore.isInt = function(value) {
434+
return entity.isDsInt(value);
435435
};
436436

437437
/**
@@ -559,15 +559,15 @@ Datastore.prototype.key = function(options) {
559559
/**
560560
* Helper function to check if something is a Datastore Key object.
561561
*
562-
* @param {*} something
562+
* @param {*} value
563563
* @return {boolean}
564564
*
565565
* @example
566566
* datastore.isKey({path: ['Company', 123]}); // false
567567
* datastore.isKey(datastore.key(['Company', 123])); // true
568568
*/
569-
Datastore.prototype.isKey = Datastore.isKey = function(something) {
570-
return entity.isDsKey(something);
569+
Datastore.prototype.isKey = Datastore.isKey = function(value) {
570+
return entity.isDsKey(value);
571571
};
572572

573573
/**

0 commit comments

Comments
 (0)