Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/mynane/PDF
/ inheritObject
Function
inheritObject
设计模式学习/结构型设计模式/组合模式/container.js:13–17 ·
view source on GitHub ↗
(o)
Source
from the content-addressed store, hash-verified
11
12
// 原型式继承
13
function
inheritObject(o) {
14
function
F(){}
15
F.prototype = o;
16
return
new
F();
17
}
18
19
var
News =
function
() {
20
this.children = [];
Callers
1
inheritPrototype
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…