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-2020

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

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


posted @ 2022-09-29 20:39  xgqfrms  阅读(21)  评论(1编辑  收藏  举报