UNPKG
@aspectus/resource
Version:
latest (0.10.21)
0.10.21
0.10.20
0.10.0
0.9.2
0.9.0
0.8.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.1
0.2.0
Composable fetch API interface.
preusx.gitlab.io/aspectus/packages/resource.html
@aspectus/resource
/
src
/
lib
/
utils.js
11 lines
(8 loc)
•
241 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/* eslint-disable import/prefer-default-export */
export
const
sameResult
= x => x;
export
function
isFunction
(
value
) {
return
(
Object
.
prototype
.
toString
.
call
(value) ===
'[object Function]'
||
typeof
value ===
'function'
); }