UNPKG
@magnetarjs/types
Version:
latest (1.5.3)
1.5.3
1.5.1
1.4.3
1.4.1
1.3.11
1.3.10
1.3.9
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.9
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.1.0
1.0.1
0.20.1
0.20.0
0.19.2
0.19.1
0.19.0
0.18.0
0.17.1
0.17.0
0.16.18
0.16.17
0.16.16
0.16.15
0.16.13
0.16.12
0.16.11
0.16.10
0.16.9
0.16.8
0.16.6
0.16.5
0.16.4
0.16.3
0.16.2
0.16.1
0.15.9
0.15.8
0.15.7
0.15.6
0.15.4
0.15.3
0.15.2
0.15.1
0.15.0
0.14.3
0.14.2
0.14.1
0.14.0
0.13.11
0.13.10
0.13.9
0.13.8
0.13.7
0.13.6
0.13.5
0.13.4
0.13.3
0.13.2
0.13.1
0.13.0
0.12.13
0.12.12
0.12.10
0.12.9
0.12.8
0.12.7
0.12.6
0.12.5
0.12.3
0.12.2
0.12.0
0.11.10
0.11.9
0.11.8
0.11.7
0.11.5
0.11.4
0.11.3
0.11.2
0.11.0
0.10.1
0.10.0
0.9.7
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
Magnetar shared types
github.com/cycraft/magnetar
cycraft/magnetar
@magnetarjs/types
/
dist
/
types
/
modifyReadResponse.js
9 lines
(8 loc)
•
265 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
{ isPlainObject }
from
'is-what'
;
export
function
isCacheStoreAddedResult
(
result
) {
return
(
isPlainObject
(result) && !!result[
'id'
] && !!result[
'current'
] && !!result[
'diffApplied'
] &&
Object
.
keys
(result).
length
===
3
); }