Skip to content

Commit

Permalink
datastore: Change entity check argument name to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
beaulac committed Oct 10, 2017
1 parent f9b8f4a commit 0c285a3
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/datastore/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,15 +346,15 @@ Datastore.prototype.double = Datastore.double = function(value) {
/**
* Helper function to check if something is a Datastore Double object.
*
* @param {*} something
* @param {*} value
* @return {boolean}
*
* @example
* datastore.isDouble(0.42); // false
* datastore.isDouble(datastore.double(0.42)); // true
*/
Datastore.prototype.isDouble = Datastore.isDouble = function(something) {
return entity.isDsDouble(something);
Datastore.prototype.isDouble = Datastore.isDouble = function(value) {
return entity.isDsDouble(value);
};

/**
Expand All @@ -380,7 +380,7 @@ Datastore.prototype.geoPoint = Datastore.geoPoint = function(coordinates) {
/**
* Helper function to check if something is a Datastore Geo Point object.
*
* @param {*} something
* @param {*} value
* @return {boolean}
*
* @example
Expand All @@ -392,8 +392,8 @@ Datastore.prototype.geoPoint = Datastore.geoPoint = function(coordinates) {
* datastore.isGeoPoint(coordinates); // false
* datastore.isGeoPoint(datastore.geoPoint(coordinates)); // true
*/
Datastore.prototype.isGeoPoint = Datastore.isGeoPoint = function(something) {
return entity.isDsGeoPoint(something);
Datastore.prototype.isGeoPoint = Datastore.isGeoPoint = function(value) {
return entity.isDsGeoPoint(value);
};

/**
Expand Down Expand Up @@ -423,15 +423,15 @@ Datastore.prototype.int = Datastore.int = function(value) {
/**
* Helper function to check if something is a Datastore Integer object.
*
* @param {*} something
* @param {*} value
* @return {boolean}
*
* @example
* datastore.isInt(42); // false
* datastore.isInt(datastore.int(42)); // true
*/
Datastore.prototype.isInt = Datastore.isInt = function(something) {
return entity.isDsInt(something);
Datastore.prototype.isInt = Datastore.isInt = function(value) {
return entity.isDsInt(value);
};

/**
Expand Down Expand Up @@ -559,15 +559,15 @@ Datastore.prototype.key = function(options) {
/**
* Helper function to check if something is a Datastore Key object.
*
* @param {*} something
* @param {*} value
* @return {boolean}
*
* @example
* datastore.isKey({path: ['Company', 123]}); // false
* datastore.isKey(datastore.key(['Company', 123])); // true
*/
Datastore.prototype.isKey = Datastore.isKey = function(something) {
return entity.isDsKey(something);
Datastore.prototype.isKey = Datastore.isKey = function(value) {
return entity.isDsKey(value);
};

/**
Expand Down

0 comments on commit 0c285a3

Please sign in to comment.