yahoo / yahoo/serialize-javascript
extract same refs of object
Aperta
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 2.9k
- Fork
- 215
- Merge medio
- 1g 12h
- PR unite (30g)
- 2
Descrizione
It's very nice if support extracting same refs of object, for example
var obj = {}
serialize({b: obj, c: obj})
get
(function() { var a = {}; return {"b": a, "c": a} })()
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Use the issue's serialize({b: obj, c: obj}) example as the starting case. Define how repeated object references should be represented and restored, including the expected identity relationship between b and c. Add coverage for the example and verify that the serialized result reconstructs both properties as references to the same object.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 28/100