We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29e66ea commit 2c67024Copy full SHA for 2c67024
src/Model.js
@@ -107,7 +107,7 @@ export default class Model extends StaticModel {
107
let url = `${this.baseURL()}`;
108
109
args.forEach(object => {
110
- if (object instanceof Model === false) {
+ if (!(object instanceof Model)) {
111
throw new Error('The object referenced on for() method is not a valid Model.')
112
}
113
@@ -139,7 +139,7 @@ export default class Model extends StaticModel {
139
140
141
isValidId(id) {
142
- return id !== undefined && id !== 0 && id !== '' && id !== null
+ return !!id
143
144
145
endpoint() {
0 commit comments