项目原始demo,不改动
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
 
 
 
 

18 行
504 B

  1. var baseGetTag = require('./_baseGetTag'),
  2. isObjectLike = require('./isObjectLike');
  3. var arrayBufferTag = '[object ArrayBuffer]';
  4. /**
  5. * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
  6. *
  7. * @private
  8. * @param {*} value The value to check.
  9. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
  10. */
  11. function baseIsArrayBuffer(value) {
  12. return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
  13. }
  14. module.exports = baseIsArrayBuffer;