UNPKG
phpjs
Version:
latest (1.3.2)
1.3.2
1.2.2
1.1.2
1.0.2
1.0.1
1.0.0
0.0.1
php.js offers community built php functions in javascript
phpjs.org
kvz/phpjs
phpjs
/
functions
/
var
/
is_buffer.js
7 lines
(6 loc)
•
252 B
JavaScript
View Raw
1
2
3
4
5
6
7
function
is_buffer
(
vr
) {
// + original by: Brett Zamir (http://brett-zamir.me)
// * example 1: is_buffer('This could be binary or a regular string as far as JavaScript knows...');
// * returns 1: true
return
typeof
vr ===
'string'
; }