【文件属性】:
文件名称:otdt:IIFE的替代语法
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-14 23:07:59
JavaScript
otdt
otdt提供了一个替代语法 。
这是“在这些内容上,执行此操作”的缩写。
// The normal way:
// "Evaluate a function that adds its two arguments on 1 and 2".
( ( a , b ) => a + b ) ( 1 , 2 )
// With otdt:
// "Evaluate, on 1 and 2, a function that adds its two arguments."
const e = require ( 'otdt' ) ;
e ( 1 , 2 , ( a , b ) => a + b )
【文件预览】:
otdt-main
----.gitignore(2KB)
----README.md(421B)
----package.json(457B)
----otdt.js(393B)
----package-lock.json(195B)