TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Essential functions in JavaScript in vanilla form (inspired by PHP)

5 点作者 amitmerchant超过 7 年前

3 条评论

onion2k超过 7 年前
Javascript has array_map called Array.prototype.map(), it has an array_merge method called Array.prototype.concat(), array_reject can be achieved using Array.prototype.filter() and so on. These functions are a poor reimplementation of some native features.
评论 #15293242 未加载
krapp超过 7 年前
Why not actually push a .js file instead of just examples in a readme?<p>Or, I guess the modern method would be why not publish every line of every function as a separate NPM package?
drivingmenuts超过 7 年前
Well, there&#x27;s always this: <a href="http:&#x2F;&#x2F;locutus.io&#x2F;php&#x2F;" rel="nofollow">http:&#x2F;&#x2F;locutus.io&#x2F;php&#x2F;</a><p>PHP functions written in Javascript. Been around for quite a while, actually.