xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

js bitwise operators All In One

js bitwise operators All In One

js 位运算符

unary operators

一元运算符

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#unary_operators

!

Logical NOT operator.

逻辑非 运算符

~

Bitwise NOT operator

按位 运算符

Bitwise shift operators

位移运算符

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#bitwise_shift_operators

<<

Bitwise left shift operator.

按位左移运算符。

>>

Bitwise right shift operator.

按位右移运算符。

>>>

Bitwise unsigned right shift operator.

按位无符号右移运算符。

Binary bitwise operators

二进制位运算符

&
Bitwise AND.

按位运算符

|
Bitwise OR.

按位运算符

^
Bitwise XOR.

按位异或运算符

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#binary_bitwise_operators

Binary logical operators

二元逻辑运算符

&&
Logical AND.

||
Logical OR.

??
Nullish Coalescing Operator.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#binary_logical_operators

import.meta

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta

demo

_curry

https://github.com/lodash/lodash/blob/4.17.15/lodash.js#L5528

      if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
        bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
      }

https://github.com/lodash/lodash/blob/4.17.15/lodash.js#L10198

https://github.com/lodash/lodash/blob/4.17.15/lodash.js#L5488

https://lodash.com/docs#curry

https://www.npmjs.com/package/lodash.curry

js currying function / js 柯里化 函数

https://zh.javascript.info/currying-partials

refs

https://zzk.cnblogs.com/my/s/blogpost-p?Keywords=bitwise

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators



©xgqfrms 2012-2025

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @   xgqfrms  阅读(21)  评论(1编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 上周热点回顾(3.3-3.9)
· AI 智能体引爆开源社区「GitHub 热点速览」
历史上的今天:
2021-09-29 揭秘游戏充值内幕-盗刷黑卡 All In One
2020-09-29 React 组件之间通信 All in One
2020-09-29 LeetCode 两数之和 算法题解 js 版 All In One
2020-09-29 Vue 组件之间通信 All in One
2020-09-29 website SEO all in one
2020-09-29 为什么国内的好多具备 HTTPS 的网站却没有使用 HTTPS 重定向功能 All In One
2020-09-29 koa-router all in one
点击右上角即可分享
微信分享提示